sundaram123
22nd April 2004 21:28 UTC
converting log path value to short
Hi all,
I am writing bat file in the install script, If your select the long path during the install time, I want to write it into short path.
for example, if you select the direcotry.
C:\Program Files\Internet Explorer
batch file, i have to write like this
APPDIR=C:\progra~1\INTERN~1
I idea how to convert this path?
-Sundaram
kichik
22nd April 2004 21:34 UTC
GetFullPathName /SHORT.
sundaram123
23rd April 2004 03:30 UTC
Hi,
Thanks it worked
GetFullPathName /short $7 $3
-Sundaram
stb
24th November 2005 13:50 UTC
Please note that there may exist long names WITHOUT short name. I had this issue with Win2000, NTFS and the (unchanged!) Windows temp directory (contained still a space after converting).