looking for the standard bug-proofed way to convert ‘long names’ such as ‘C:\Documents and settings’ to their equivalent ‘short names’ ‘C:\DOCUME~1’
I need this to run an external process from withing my C# app. It fails if I feed it with paths in the ‘long name’.
Does the external process fail even if you enclose the long file paths in quotes? That may be a simpler method, if the external app supports it.
e.g.