Using wildcards with the rmdir or rd command
- by serdar
Let's say there are some folder in the D: drive:
D:\Air
D:\Abonden
D:\All
D:\Whatever
I want to delete all folders starting with "A" (including all subfolders and files). I tried this command:
rmdir D:\A* /s /q
I get an error, though :(
The filename, directory name, or volume label syntax is incorrect.
The del command works with *, but I need to delete folders as well.
Is there a way to achieve that via the rmdir command?