Hi,
how would the code for such a button be? The purpose is, to easily perform a "run as" action via, let´s say Shift-Alt-R, which should bring up an password input field & then run the selected exe as admin, instead of the old shift right click.
Hi,
how would the code for such a button be? The purpose is, to easily perform a "run as" action via, let´s say Shift-Alt-R, which should bring up an password input field & then run the selected exe as admin, instead of the old shift right click.
XP or Vista?
I think you can use runas.exe on both on XP there may be a better solution using the runas verb.
(Unfortunately, on Vista the runas verb seems to have been changed to trigger UAC without leaving the possibility of running using a unrelated account that was there in XP. I guess MS assumed people only used runas for elevation, which isn't true.)
I have Windows XP.
Sorry. I read only the upper part. I actually have no idea how to use that runas.exe.
Bring up a DOS prompt and type runas ? to see the command line.
Possibly something like this would do what you want:
runas.exe /profile /user:Administrator {filepath}
You'll have to have a play around to see what works for you.
[quote="jon"]
Possibly something like this would do what you want:
runas.exe /profile /user:Administrator {filepath}
You'll have to have a play around to see what works for you.[/quote]
Jon, thank you very much! No need to play around, because this is exactly what i wanted. I made a hotkey, so i can run this on every executable. 