General discussion
February 24, 2006 at 06:37 AM
mozster

BATCH/SCRIPT FILES COMMAND

by mozster . Updated 20 years, 8 months ago

I have a batch file that runs at a command prompt that goes along the lines of:

cd test
del *.*

I need this to run without any user intervention but as you’ll know doing a del *.* then stalls the batch file as it waits for the user to push Y to confirm the deletion.
Is there a command I can use in the DOS batch file to allow the “Y” to be sent automatically so the files are deleting without intervention?

This discussion is locked

All Comments