Results 1 to 3 of 3

Thread: Open dos, paste, run, wait, close

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    183
    Any idea on how to create code for win 2000 that:
    Opens Dos (hidden)
    Pastes the clipboard contents onto the command propt
    hits return
    waits for the operation to complete and then closes dos?

    Any help would be greatly appreciated!!

  2. #2
    Guest
    I am not sure what Win2k's dos is, but change it around

    Try this:

    Code:
    x = Clipboard.GetText()
    Shell "Command.com " & x, vbHide

  3. #3
    Guest
    Don't think that'll work. The command prompt has different messages than Windows programs.

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