for %f in (path\directory*) do rd /s %f
Add /Q if you're brave and don't want to be prompted for each one
...Tim
From: Gavin Wilby [mailto:gavin.wi...@gmail.com]
Sent: Thursday, January 14, 2010 8:05 AM
To: NT System Admin Issues
Subject: RMDIR and Wildcards
Hi,
For one reason or another I
Hi Tim,
Are you sure that syntax is correct, as it doesnt appear to work here :(
Gavin.
On Thu, Jan 14, 2010 at 4:25 PM, Tim Evans tev...@sparling.com wrote:
for %f in (path\directory*) do rd /s %f
Add /Q if you're brave and don't want to be prompted for each one
...Tim
*From:*
You need to throw in a /d if you want to match against directories
For /d %f in (path\directory*) do rd /s %f
From: Gavin Wilby [mailto:gavin.wi...@gmail.com]
Sent: Thursday, January 14, 2010 10:38 AM
To: NT System Admin Issues
Subject: Re: RMDIR and Wildcards
Hi Tim,
Are you sure
He meant to say: for /d %f in (path\*)
Carl
From: Gavin Wilby [mailto:gavin.wi...@gmail.com]
Sent: Thursday, January 14, 2010 11:38 AM
To: NT System Admin Issues
Subject: Re: RMDIR and Wildcards
Hi Tim,
Are you sure that syntax is correct, as it doesnt appear to work here
correct, sorry about that.
...Tim
From: Crawford, Scott [mailto:crawfo...@evangel.edu]
Sent: Thursday, January 14, 2010 8:39 AM
To: NT System Admin Issues
Subject: RE: RMDIR and Wildcards
You need to throw in a /d if you want to match against directories
For /d %f in (path\directory*) do rd /s
:* RE: RMDIR and Wildcards
You need to throw in a /d if you want to match against directories
For /d %f in (path\directory*) do rd /s %f
*From:* Gavin Wilby [mailto:gavin.wi...@gmail.com]
*Sent:* Thursday, January 14, 2010 10:38 AM
*To:* NT System Admin Issues
*Subject:* Re: RMDIR