Executing/Handling DOS program within VB - TechRepublic
General discussion
September 22, 2003 at 01:04 PM
merc3065

Executing/Handling DOS program within VB

by merc3065 . Updated 22 years, 9 months ago

Here is a very tough problem I have been working on for over 2 weeks now and its driving me insane. There is very little reference if any regarding this topic on the internet that I have found relevant to my current situation.

I am attempting to run the runas.exe command using VB6 to automate the password input process. I have gotten to a point where I can call the program and even output text to the same dos box. However, I can’t use this output to the dos box to be accepted by the runas.exe as the password.

Basically I want to be able to control a DOS application from within VB6 and bundle it up so it plays nice with a locked down system for distributing patches to end users.

Is there a way to grab output from a DOS application, pass it to the VB6 application, and send this data back out to the DOS application and let the DOS application do its thing?

I have read about this StdOut and StdIn but my MSDN cd only shows me C++ coding examples, nothing about VB6 so i’m at a real loss here on what to do.

If anyone has generic ideas or specific ones related to this I would greatly appreciate it.

This discussion is locked

All Comments