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.
Who is Participating?
chensuConnect With a Mentor Commented:

::CreateProcess() should be able to handle long filenames.
Marco, enclose your LFNs in " " if they contain spaces
MarcoHelmersAuthor Commented:
Thanx ...
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.