Suppose I have a script that needs to read information from places that normal user is not permitted to read (e.g. other users\' folders).
Currently all I can do is
If you're ok with launching through a shortcut, you can use the following:
Edit the shortcut.
On the Shortcut tab, change "Target" to
"c:...\bin\perl.exe" "c:...\script.pl"
[Optional] On the Shortcut tab, change "Start in" to the path of the directory in which your script resides.
There's a tool called "runas
", but I can't seem to get it to work without asking you for Administrator's password.