
question on hiding a DOS window when executing a DOS batch file
Quote:
>I remember using a PIF file to hide a DOS window. But it was a long time
>ago so I don't know any details.
>hth
>Dieter
>> Could anybody tell me how to hide a DOS Window when a DOS batch file is
>> executed by using shell in VISUAL BASIC ?
>> Thanks. Have a nice holiday.
>> Meng Xu
All you need to do is use the following code wherever it is you need it:
Call Shell(path and executable go here, 6)
The 6 in that code has VB run the window minimized leaving the focus on the
calling app. If you want the window containing the batch file to be minimized
and also have focus, replace the 6 with a 0
Hope this helps.
Shep Pharis
www: http://www.geocities.com/SoHo/8962
Remove the '_' from my email address to validate it.