Batchfile, regedit & %program files%
I'm using a batchfile to install a program.
This works when building the reg file:
[HKEY_CLASSES_ROOT\Directory\shell\MP3 playlist\command]
@="C:\\Program Files\\MP3 ListMaker\\MP3 ListMaker.exe"
I can't get this to work because the \\ has to be after the C:
Echo [HKEY_CLASSES_ROOT\Directory\shell\MP3 playlist\command] >>"MP3 ListMaker.reg"
Echo @="\\%ProgramFiles%\\MP3 ListMaker\\MP3 ListMaker.exe" >>"MP3 ListMaker.reg"
Have tried playing with the \\
Any useful ideas?
|