Link to home
Start Free TrialLog in
Avatar of schworak
schworak

asked on

Launching an application with another login access level.

I have an application that launches another program. This is on our internal network and is for internal use only. Part of the child program needs access to a specific account that we have created specifically for this program. What I need to do is have program A run program B using the specified login regardless of who is logged in and running program A.

Hope that makes sense...

1) Joe logs in and runs program A
2) Joe performs the task within program A that causes program B to be started
3) Program A launches a new user session with the proper user/password to make program B run properly


Basically, program B has extra access rights and folder access that other user's don't have. So when it is launched it needs to be run as a specific user.

Can this be done (and how is it done) from within VB?
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of schworak
schworak

ASKER

Tried the accepted answer on that page but noting ever runs. It always returns ZERO as the results but never executes anything.

I expected it to fail under Win98 but it still returned zero just like it does under WinXP.

Any thoughts?
RunAs won't allow me to embed the password so that one doesn't work but the accepted answer looks promissing if I can get it to actually run something. Anything.