- Apr
- 35
- 0
I'm trying to create a shortcut with an environment variable in the path of the target.
[C:\Temp]shortcut "%%tools%%\apps\tcmd\tcc.exe" "" "" "Take Command Console" "Take Command Console.lnk" 1 "%tools%\apps\tcmd\tcc.exe" 0
But this results in a shortcut with the target: C:\Temp\%tools%\apps\tcmd\tcc.exe
Instead of the desired: %tools%\apps\tcmd\tcc.exe
[C:\Temp]shortcut "%%tools%%\apps\tcmd\tcc.exe" "" "" "Take Command Console" "Take Command Console.lnk" 1 "%tools%\apps\tcmd\tcc.exe" 0
But this results in a shortcut with the target: C:\Temp\%tools%\apps\tcmd\tcc.exe
Instead of the desired: %tools%\apps\tcmd\tcc.exe