Is there a windows API call or some way to translate the paths of the form
C:\Progra~1\Users\SomeU~2\
to
C:\Program Files\Users\SomeUser\
You are looking for GetLongPathName().
GetLongPathName()