Results 1 to 4 of 4

Thread: Reading DOS Output

  1. #1
    Guest
    Thanks! That'll do perfectly!

  2. #2
    Guest
    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.

  3. #3
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    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.

  4. #4
    Guest
    Thanks. Great suggestions. They'll work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width