i have a folder with 2K+ files in it, i need to delete around 200, i have a txt file with all the file names i need removed ordered in a list, how do i remove the specific files from the folder using the list? (OS is windows 7)
Windows – How to delete files from a folder using a list of file names in windows
batch filewindowswindows 7windows-explorer
Best Answer
Simple way is copy the txt file to a file called
mydel.bat
in the directory of the files to delete. Using an editor like Microsoft Word edit this file. Do a global replace on Newline normally^p
in Word. Replace it withspace/f^pdelspace
. This will changeto (with
/f
for "force delete read-only files"):Edit the fist line to add the
del
space and delete the last line.Run the batch command.