Discussion Locked

Batch file end problem

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a batch file that automatically deletes documents in a folder. echo y| del whatever.
& then i have to close the window down. How to i get this to automatically close down.

5 replies

by vinnyd

You did not say how you run this batch file.

IF your running it from a windows shortcut you should change the shortcut to:

command.com /c batchfilename.bat

Set the properties of the short cut to Close the window.

This would open the batch file and execute the commands and then close automatically.

This discussion is closed to new replies.