Skip to content
⌘ NSIS Forum Archive

converting log path value to short

4 posts

sundaram123#

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