Thanks! That'll do perfectly!
Printable View
Thanks! That'll do perfectly!
Ok. One final thing. I know this is a newbie question...
How do I shell a command line? I.E.: I want to execute "tracert 10.10.90.4 > trace.txt". The IP will change with each call, so I can't just write a batch file... Thanks in advance.
Why not write the bat file from your VB app with all the commands that you want to execute and run it in the Shell command?
The syntax for Shell is Varx = Shell(command[, windowstyle])
where windowstyle can be:
0 vbHide
1 vbNormalFocus
2 vbMinimizedFocus
3 vbMaximizedFocus
4 vbNormalNoFocus
6 vbMinimizedNoFocus
BTW, I usually add a line to delete the batch file as the last line of the batch file to clean up behind myself.
One last thing, I just reread your original post. You say that "there are some DOS applications I essentially would like to duplicate". If you plan to write your own DOS apps, they will have to write to the standard output device or the I/O redirection will not work. If this is not clear, let me know.
Thanks. Great suggestions. They'll work.