The following paragraph was taken from FAQ section of the help file: Q: I have scheduled a job that runs DOS BAT file. After the .BAT file completes, the DOS window remains open. How can I avoid it? A: You have two options: a. Run this BAT file manually. Select Properties from the window's control menu. Check Close on Exit option. b. Specify the command line for this program as CMD.EXE /c C:\MYPATH\MYFILE.BAT. The /c tells the system CMD.EXE command to exit after processing the MYFILE.BAT file. For more help on the CMD command, type CMD /? at the command prompt. On Windows 95/98 use command COMMAND instead of CMD. : How do you close a window after running a dos bat file? I typed exit at the : end of the file, but nothing happened. Is there any other way to do this?
|