Good morning all
I need a way in visual basic 6, to start a console process, like
ping -A xxx.xxx.xxx.xxx > outputfile.txt
and make vb hold its own execution till this process finishes. Using
Shell() doesnt work, it starts a process, then just carries on
working.
The ping example above uses the > outputfile.txt to grab all the
console output from that program, which i then read later on my
program.
Am I looking at using API calls for this?
Currently im using RetVal = Shell("CMD /S ping -A 123.456.123.456 >
outputfile.txt")
Outputfile.txt part works perfectly. But VB continues its processing
past my Shell call before the CMD window terminates.
Thanks
Rich