Using wildcards with the rmdir or rd command
        Posted  
        
            by 
                serdar
            
        on Super User
        
        See other posts from Super User
        
            or by serdar
        
        
        
        Published on 2014-06-06T07:44:46Z
        Indexed on 
            2014/06/07
            9:28 UTC
        
        
        Read the original article
        Hit count: 333
        
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?
© Super User or respective owner