Sunday, October 26, 2014

windows 10 - How to delete folders with similar names in Command Prompt

I accidentally created thousands of empty folders on my desktop and it has essentially bricked my windows explorer.


Looking for a cmd prompt code to remove all of the empty folders.
They all have the number 15 at the beginning of the folder name.


They are labeled consecutively: 15 - 01, 15 - 02, etc.


I tried


for /D %f in (15*) do rmdir %f /s

But for each folder, the cmd prompt says that the



system cannot find the specified file



despite prompting me to choose a yes/no on deleting the queried folder.
Thanks all, and thank you for the help


I'm using Windows 10 OS.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...