Have you noticed that when you Shell a program through DOS, it will do the task and than close the box, even if you open edit, it will open it and still close it. I'm sure some of you already know this, but for all of you that don't, command.com has commandline parameters.

/c command - executes the specified command and returns (closes)
/k command - executes the specified command and keeps running (stays open)

So, when you shell something through VB to run it in DOS, just do this:

Code:
Shell "command.com /k task/command", vbNormalFocus
'Shell "command.com /k edit", vbNormalFocus
If you already knew this, sorry for the waste of your time. But if you didn't, hope that helps.

Yours truly,
Dr. Gates

(edited for spelling mistakes - no ones perfect)

[Edited by Matthew Gates on 10-27-2000 at 09:34 PM]