• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

want to have shortcut to always run application (in XP) as another user

zimu

Diamond Member
hi guys,

basically, have an application that i need to run as a particular user every time, which should start up with windows (i.e. i want to put it in startup).

for the life of me i cna't find a way to set it up - there's no "always run as" option or similar.

i've tried scripting the "runas" command prompt option but that doesn't let me type in the password for the user so prompts me when i try that.

any ideas?
 
If you're using XP Pro or XP Media Center Edition, you can use the /runas /savecred switches in a custom shortcut. pic showing how to set up the shortcut :camera:

Hopefully that'll work. Launch it manually once, supply the password, and it should retain it from then on. So you can drop that shortcut into the Start > All Users > Start Menu > Startup folder.

I've had /savecred fail on me on WinXP SP3 systems and haven't gotten to the bottom of it yet, so if it never works, you're in the same boat as me on that one. But here's hoping 🙂
 
you can use a perl script to automate the typing of the password very easily if you want

use Win32::GuiTest;

system("start cmd.exe /C runas.exe /user:ul c:\\firefox\\firefox.exe");

Win32::GuiTest::SendKeys("{PAUSE 100}thepassword{ENTER}", 0);
 
i'm surprised i didn't get a "switch to linux" or "use this perl script" post sooner 🙂
runas from plain old vanilla ms dos prompt worked like a charm 🙂
 
Back
Top