Archive: converting log path value to short


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


GetFullPathName /SHORT.


Hi,

Thanks it worked

GetFullPathName /short $7 $3

-Sundaram


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).