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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top