Mike, you posted the challenge. There doesn't appear to be an easy way to do this with "straight" VB. Calls to User32 appear to be lacking here, too (unless I missed something that should've bitten my leg!).<br>
VB can't SendKeys a good string to a command/cmd window.<br>
Interrupt 2Eh, which I haven't tried since DOS 5.0, blows a window or EMM386 out of the water (maybe some of the old DOS hands remember interrupt 2Eh.... it allowed you to execute an external or internal command without loading an extra copy of the command processor).<br>
Mike, maybe you already know the answer to this one. If you don't... then let's define some ground rules.<br>
<br>
1) The function has to work without the help of third-party add-ons, TSR's of any kind, visible windows, msgboxes, additional copies of command.com/cmd.exe, NT trickery (let's make this work in Win9x, too), command processor replacements OR calls to the API. There....<br>
<br>
That's it... Just 1). Agreed???<br>
<br>
Bitbrain's original post stated that it ought to be easy.<br>
<br>
Regards, Alt255<br>
<br>