Closing Cmd window after batch processing

G

GeorgeMar

Does anyone know how to close the Cmd window after a batch
processing? I have included Exit at the end of batch
commands to no avail.

many thanks
george
 
W

Wayne Morgan

Are you using the Shell command to call command.com or cmd.exe with the
batch file added to the command line? If so, use the /C switch also.

Example:
RetVal = Shell("cmd.exe /c c:\batch\mybatchfile.bat", vbHide)
 
Top