
Help: hiding a DOS window when executing a DOS batch file
Quote:
>Hi, VB gurus:
>When I run a DOS batch file, there always is a DOS window pops up. Is
>there anyway to hide this window ? The shelling procedure I used is
>ExecCmd().
>I posted this question before. However, I could not get the answer to it.
>Sorry for reposting it.
>When I run a DOS batch file by using shell function, the DOS window pops
>up. I wonder if there is some way to hide the DOS window when the batch
>file is running.
Shell(pathname[, windowstyle])
The windowstyle named argument has these values:
Constant Value
vbHide 0
vbNormalFocus 1
vbMinimizedFocus 2
vbMaximizedFocus 3
vbNormalNoFocus 4
vbMinimizedNoFocus 6
--
Tony Gilbert
The Sounds of Red Dwarf http://www.swoon.demon.co.uk
PGP KeyID: 0x2FB1D3D1