Batch file to delete files/folders?

B

Brian Wescombe

How would I go about writing a batch file that will delete a selection of
files from various folders?

Thanks in advance!
 
S

Shenan Stanley

Brian said:
How would I go about writing a batch file that will delete a
selection of files from various folders?

Open Notepad.
Type in the appropriate command lines.
Save the file with a .bat or .cmd extension.

ie:

del /q /f x:\mydirectory\myfile.doc

or

erase /q /f x:\mydirectory\myfile.doc

Without you giving us more - that should get you started.
 

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

Top