Results 1 to 2 of 2

Thread: opening command prompt, pasting and return

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    183

    Talking

    Anybody have any idea how to write code to:
    open dos (in win 2000 and in hidden view),
    paste the contents of the clipboard in,
    hit return,
    take all of the information that dos subsequently spits out and put it all into a textbox.
    and then close dos?


  2. #2
    Guest

    Dos

    Since noone else wants to try, I would hazard a guess that you are trying to do something with an old DOS program.

    Try this:

    create a batch file (DOS) that will invoke the program and output to a file.

    Invoke the BATCH file minimized, and get/keep track of the handle. When the handle is completed (I think there is a VB command that will tell when it is finished), close the window.

    You can then pick up the output text file.

    If the command to see when the window finishes processing doesn't work, add a line to the batch file to create a second dummy


    dir >> xxx.xxx

    or something equally rediculous. Set up a loop to check for the existance of xxx.xxx When you see it, you'll know the process is as finished as you need, and you can then kill the process.

    Good Luck
    DerFarm

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