Situation:
x:\neededmap\files.txt
x:\neededmap\trashmap1\files.txt
x:\neededmap\trashmap1\trashmap2\files.txt
x:\neededmap\trashmap3\files.txt
x:\neededmap\trashmap4\files.txt
How to delete by batch all Files.txt and all trashmaps Or better, just the neededmap must remain.
You may do this through
del /f /s /q files.txt- this will delete allfiles.txtfrom the current working directory (CWD) and all subsequent directories. Please use caution.Microsoft provides excellent documentation on their Del references page. The
/fforces deletion of read-only files, the/sis equivalent to -recurse in Powershell. The/qmakes it execute quietly and not request for confirmation.