As already mentioned these are 8.3 file names. If you need to convert from a short name to a full name then you can easily do this with C#.
new FileInfo("E:\tmp3\TESTUS~1.DOC").FullName
Going the other way requires a PInvoke call to GetShortPathName
. Be aware that this doesn't work on all NTFS volumes as short names can be turned off but they are turned on by default for the volume the OS is on.
class Program
{
[DllImport("kernel32.dll", SetLastError = true)]
private static extern int GetShortPathName(String pathName, StringBuilder shortName, int cbShortName);
static void Main(string[] args)
{
var fullname = args[0];
var shortPathBuilder = new StringBuilder(fullname.Length);
GetShortPathName(fullname, shortPathBuilder, shortPathBuilder.Length);
var shortname = shortPathBuilder.ToString();
}
}