Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1683

Delete all (non empty) directory with a specific pattern.

$
0
0
I am using TCC 26.02.42.

I can list all directories I want to delete with:

Code:
dir /A:d ::^[0-9a-z]{8}\.[0-9a-z]{3}$

Now I want to delete all this directories:

Code:
rd /s ::^[0-9a-z]{8}\.[0-9a-z]{3}$

I get the error that the directory name is invalid.

Viewing all articles
Browse latest Browse all 1683

Trending Articles