Translate Between Short and Long Paths
I wrote a simple dialog-based app that takes a path string as an input and produces the short and the long path names as an output. Nothing fancy here. Just plain vanilla code that might prove useful to someone.
For example entering: C:\Program Files\util\vslick\win;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\PROGRA~1\STINGR~1\OE104\lib;C:\PROGRA~1\STINGR~1\Common\ COMMON~1.01\lib;C:\PROGRA~1\STINGR~1\Common\MVC6~1.01\lib;C:\PROGRA~1\STING R~1\OT601\lib
and the short path as follows: C:\PROGRA~1\util\vslick\win;C:\PROGRA~1\MICROS~2\Common\Tools\WinNT;C:\PROG RA~1\MICROS~2\Common\MSDev98\Bin;C:\PROGRA~1\MICROS~2\Common\Tools;C:\PROGR A~1\MICROS~2\VC98\bin;C:\PROGRA~1\STINGR~1\OE104\lib;C:\PROGRA~1\STINGR~1\C ommon\COMMON~1.01\lib;C:\PROGRA~1\STINGR~1\OT601\lib;q:\ntutil;q:\util;c:\t ools;q:\es\3rdparty\windows;q:\es\dev
Download demo application (sans source) - 8 KB
Date Last Updated: May 17, 1999
Comments
Damn Angry!
Posted by Legacy on 01/27/2003 12:00amOriginally posted by: Barbara Reynolds
Excellent work !
Posted by Legacy on 07/04/2002 12:00amOriginally posted by: Steven
Just what I need ! (Because my OS is NT4)
ReplyGetShortPathName does this for you!
Posted by Legacy on 09/13/2000 12:00amOriginally posted by: Bob Blais
Windows 95 problem
Posted by Legacy on 08/01/2000 12:00amOriginally posted by: Mikkel Bie
Tried to use your code, but on our Windows 95 testbox the call to SHGetPathFromIDListW was not supported. I used SHGetPathFromIDList instead, and it seems to solve the problem.
Reply-Mikkel
Other Methods
Posted by Legacy on 07/04/1999 12:00amOriginally posted by: Trevor Ash
Reply