To create a shortcut with a relative path, set the target as follows.
%windir%\system32\cmd.exe /c start your_relpath\app.exe [your_args]
It is also easy to make the program run as an administrator.
Properties > Advanced > Run as administrator
But combining the two together will not work. When cmd.exe starts as admin, it loses the current working directory and goes to %windir%\system32 . The relative path begins there, which is not intended.
Is there a way to make the shortcut both relative and run as admin?
windows relative-path uac shortcut
Trevor Merrifield Sep 12 '13 at 6:15 2013-09-12 06:15
source share