Charles Dye
Super Moderator
- May
- 5,338
- 161
Staff member
1. If the target command does not contain any of : / \ or %, and does not exist in the current directory, do a %path% search for it. For example:
If there is not a notepad.exe in the current directory, search the path for it.
2. Add a fourth optional parameter uac. If uac begins with E, run the command elevated. If it begins with N, run the command unelevated. If uac is not present, do not set the shortcut's elevation level.
Code:
shortcut notepad.exe "" "" "" "%@shfolder[16]\test1.lnk" 1
If there is not a notepad.exe in the current directory, search the path for it.
2. Add a fourth optional parameter uac. If uac begins with E, run the command elevated. If it begins with N, run the command unelevated. If uac is not present, do not set the shortcut's elevation level.