Run an app as diff account user

hi,

How can i run a program from VB as a different account on my windows machine? I am wanting something along the lines of the 'RUNAS' command in dos, i would use the command from dos in vb but the command requires that you input the password for the account which you want to run the application as on the command prompt itself.

Is there anyway in VB i can run an application (say notepad.exe) as if a different account was running it?

Thanks
LVL 18
Ravi SinghSenior Software EngineerAsked:
Who is Participating?
All Courses

From novice to tech pro — start learning today.