bat code: Search and delete files

DEL [FILENAME] /S /Q /F Use the above command to delete all files (name should be given) in a directory tree. The [FILENAME] can be replaced by directory name or asterisk. If you put asterisk instead, then it will delete all the files. You can try also like this: *.ext filename.* file*name.* *name.ext this will delete any file, that contains any other words in the place of *. Note that this command will not delete folders. To delete folders, you can use 'rd' command.

No comments:

Post a Comment

Thank you for commenting. Please keep visiting.