Solved

Run an app as diff account user

Posted on 2004-08-18
1
225 Views
Last Modified: 2010-05-02
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
0
Comment
Question by:Ravi Singh
1 Comment
 
LVL 20

Accepted Solution

by:
hes earned 50 total points
ID: 11829899
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question