cmd – How to delete all files and folders in a directory respectively an entire directory tree except files specified in a list file?
Let us assume the list file G:ADmodsExclusion List.txt contains only file/folder names without path like: Cleanup.cmd Exclusion List.txt Folder to keep File not to delete.txt The batch file G:ADmodsCleanup.cmd can be used with the following command lines to delete all files and folders in directory of the batch file with exception of the files and … Read more