Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9078

Using wildcards with the rmdir or rd command

$
0
0

Let's say there are some folder in the D: drive:

D:\AirD:\AbondenD:\AllD:\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?


Viewing all articles
Browse latest Browse all 9078

Trending Articles