Closing Cmd window after batch processing

  • Thread starter Thread starter GeorgeMar
  • Start date Start date
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
 
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)
 
Back
Top