07-23-2023, 01:41 AM
I want this script to list all folders that contains "deleted" in the folder name but not if they is in a folder called "done".
For exampel: list the folder if it's in `C:\temp` and if it's in `C:\temp\random_folder_name` but not not if it's in `C:\temp\done`
dir /s "C:\temp" | findstr "\deleted"
short story, exclude all folders named "done" and their content.
For exampel: list the folder if it's in `C:\temp` and if it's in `C:\temp\random_folder_name` but not not if it's in `C:\temp\done`
dir /s "C:\temp" | findstr "\deleted"
short story, exclude all folders named "done" and their content.