Solved

Run an app as diff account user

Posted on 2004-08-18
1
222 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now