• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

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.
0
MarcoHelmers
Asked:
MarcoHelmers
1 Solution
 
chensuCommented:
::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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now