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.