[Edit]
Make a new text file and rename it to _____.bat (fill in the blank with a name of your choice). I'm assuming you know how to change file name extensions.
Right click on the .bat file. Choose 'edit'.
type this:
del " __A___ \*._B_"
fill in blank A with the directory name
fill in blank B with the extension of the file type you want to delete or '*' for all files.
EXAMPLE
del "C:\New Folder\*.*" - this will delete everything in the folder
OR
del "C:\Another Folder\*.jpg" - this will only delete files with the jpg extension
Now you can save the batch file and run it.
Right click on the .bat file. Choose 'edit'.
type this:
del " __A___ \*._B_"
fill in blank A with the directory name
fill in blank B with the extension of the file type you want to delete or '*' for all files.
EXAMPLE
del "C:\New Folder\*.*" - this will delete everything in the folder
OR
del "C:\Another Folder\*.jpg" - this will only delete files with the jpg extension
Now you can save the batch file and run it.
First answer by Hcross75. Last edit by Hcross75. Contributor trust: 19 [recommend contributor]. Question popularity: 17 [recommend question]




