I'm hoping to get a batch script to delete a specific subfolder from multiple subfolders in a specific folder. For example: I have a folder in my C Drive named "Test Folder". In that folder, I have 4 subfolders with the titles "Bill" "Sue" "Bob" "Joe". In each of those 4 folders, I have 3 subfolders titled "Test 1" "Test 2" "Test 3". I want to run a batch script to delete the subfolder "Test 2" from each of the 4 subfolders "Bill" "Sue" "Bob" "Joe".
Ultimately, in production, there will be 1000+ subfolders in the "Test Folder" folder, so this is why I'm looking for a script to assist with this.
Ok, is this an attempt at manual labor right now, or is this a test of lesson for school? If it is work, related, as an IT person, if I were to program a task such as this, then I will do it for your boss, not you. If this is school, then you need to do your own work.
Either way, really, you need to do your own work.
"Why do you answer me like this, Mark?"
Here is why I shy aware from this type of solution offering: Because the scope is RARELY described 100% of what is needed, and if not deployed right, or understood, you delete every file that you have access to, and blame us for our solution.
HEre is a start, it is the FOR command. This will start you on LOOPING through folders. After you verify you find the files you want to delete, go ahead and venture further into the other BATCH commands!