Solved

Launching an application with another login access level.

Posted on 2004-09-28
4
125 Views
Last Modified: 2012-05-05
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?
0
Comment
Question by:schworak
  • 2
4 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
Comment Utility
0
 
LVL 3

Author Comment

by:schworak
Comment Utility
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?
0
 
LVL 3

Author Comment

by:schworak
Comment Utility
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.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 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

10 Experts available now in Live!

Get 1:1 Help Now