Return to site

Get file path for java that works on both windows and mac

broken image

They indicate that the path should be passed to the system with minimal modification, which means that you cannot use forward slashes to represent path separators, or a period to represent the current directory, or double dots to represent the parent directory.

broken image

These prefixes are not used as part of the path itself. For example, '\\?\UNC\server\share', where 'server' is the name of the computer and 'share' is the name of the shared folder. To specify such a path using UNC, use the '\\?\UNC\' prefix. The '\\?\' prefix can also be used with paths constructed according to the universal naming convention (UNC). The maximum path of 32,767 characters is approximate, because the '\\?\' prefix may be expanded to a longer string by the system at run time, and this expansion applies to the total length.