PDA

Click to See Complete Forum and Search --> : Open dos, paste, run, wait, close


bob323
Sep 24th, 2000, 05:27 PM
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!!

Sep 24th, 2000, 07:06 PM
I am not sure what Win2k's dos is, but change it around

Try this:

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

Sep 25th, 2000, 02:48 PM
Don't think that'll work. The command prompt has different messages than Windows programs.