Long Filenames

How can I get the short version (with ~) of a long filename ? I need it for commands like CreateProcess which only seems to accept the short version.
MarcoHelmersAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
::GetShortPathName().

::CreateProcess() should be able to handle long filenames.
0
 
warmcatCommented:
Marco, enclose your LFNs in " " if they contain spaces
0
 
MarcoHelmersAuthor Commented:
Thanx ...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.