Following my question here on SuperUser and here on StackOverFlow.
I've noticed that Windows 8.3 path only apply to local path like: C:\Program Files
and not on network path like: \\MyNetworkPAth\Shared folder\MyFooFolder
(it returns the same path).
For example decoding Windows 8.3 path of C:\Program Files
with using the .NET code of:
public static extern int GetShortPathName([MarshalAs(UnmanagedType.LPTStr)] string path, [MarshalAs(UnmanagedType.LPTStr)] StringBuilder shortPath, int shortPathLength);
StringBuilder shortPath = new StringBuilder(248);
GetShortPathName("C:\Program Files", shortPath, shortPath.Capacity);
string destinationPath = shortPath.ToString(); --> "C:\PROGRA~1"
While network path:
StringBuilder shortPath = new StringBuilder(248);
GetShortPathName("\\MyNetworkPAth\Shared folder\MyFooFolder", shortPath, shortPath.Capacity);
string destinationPath = shortPath.ToString(); --> "\\MyNetworkPAth\Shared folder\MyFooFolder"
Is it possible to apply Windows 8.3 path to network paths?
dir /x
to see them, but indeed, on network shares, they are empty, so long answer short, not possible, only locally.