Too true Fonceur. In theory you can add an extra seperator using plain DOS but it takes the batch file from messy to ridiculous.
Here's a partial list of inf "dirid" values I've just build up after reading "Creating shortcuts using INF files" by Daniel U. Thibault (http://www.robvander...hortcutinf.html
). I presume they are constant values. I couldn't be bother testing beyond 100... let me know if you find anything new, or a link to a more complete list.
[edited 16 Jan 05]
; 1=SourceDrive:\pathname of the directory from which the INF file was installed
; 11=system (or system32 on Windows NT)
; 24=c: (the Applications folder [ie. Program Files] root)
; 25=windows (MS doc refers to this as the "Shared directory". ?)
; 30=c: Root directory of the boot disk (might not be the same directory as dirid24)
; 31=c: (as above?)
; 33=start menu\programs
; 50 System directory (%windir%\system) on NT-based OS (only)
; 51 Spool directory (not used for installing printer drivers)
; 52 Spool drivers directory (not used for installing printer drivers)
; 53 User profile directory
; 54 Directory where ntldr.exe and osloader.exe are located (NT-based systems only)
; 55 Print processors directory (not used for installing printer drivers)
; Value Shell Special Folder
; 16406 All Users\Start Menu
; 16407 All Users\Start Menu\Programs
; 16408 All Users\Start Menu\Programs\Startup
; 16409 All Users\Desktop
; 16415 All Users\Favorites
; 16419 All Users\Application Data
; 16422 Program Files
; 16427 Program Files\Common
; 16429 All Users\Templates
; 16430 All Users\Documents
The author of the doc above adds this -
"%24% is the Applications (Program Files) directory root (typically C:\).
The entire %24%\Progra~1\Access~1\ path can be retrieved as %28710% under Win 98 and later."
Thanks Yz÷wl, just downloaded reg.exe from the Resource Kit. (Dialup, only 100 odd hours to go...) Looks neat.