Tag Archives: GetShortPathName

How to get the short path of a directory

In some occasions it might be necessary to use a directory’s short path. This is possible with the use of the Windows GetShortPathName function.

Implementation:

Simply call the GetShortPath with the directory you want to get the short path as an argument.

Example: