I have a console program on windows (a compiled version of curl command line) in where you can write commands and have a return. How can i send commands to this console application and return the result to VB6? I know you can do this with DOS commands with Windows Script Host but as you see the commands i want to run dont are in command.exe
Thanks!
Domingo –
Well, I am assuming that since you mentioned it, you know how to use the WSH library. The only other piece of information you need is the string to execute the command you want. You can run DOS commands with this string in Windows 95/98/Me:
However, it seems more likely that you would be using an NT based operating system such as Windows NT, 2000, XP, Vista or 7, in which case, you should use: