Computing.Net > Forums > Windows NT > Deleting multiple folders using wildcard entries from a batch process.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Deleting multiple folders using wildcard entries from a batch process.

Reply to Message Icon

Name: Nobby
Date: November 11, 2000 at 08:18:48 Pacific
Comment:

How can I remove and delete the contents of more than one folder using wildcard entries from a batch file ran from Windows NT.

ie. rmdir /s /q abc*

to remove all folders with "abc" in the title.

I need to remove folders & all sub contents of a similar type or with a common name entry ie. rms1, rms2, rms3 etc but using a batch process.

Hope someone can help?
Cheers



Sponsored Link
Ads by Google

Response Number 1
Name: Rambler
Date: November 11, 2000 at 11:24:13 Pacific
Reply:

RMDIR doesn't support wildcards, DELTREE does.


0

Response Number 2
Name: Nobby
Date: November 12, 2000 at 01:50:41 Pacific
Reply:

This is true but i didnt think Winnt supported Deltree.


0

Response Number 3
Name: Rambler
Date: November 12, 2000 at 07:31:36 Pacific
Reply:

You're right - I was on W95 at the time, your Honor!

Try this:

FOR /L %d in (1,1,9) DO rmdir xms%d

(Use %%d in a batch file.)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Deleting multiple folders using wildcard entries from a batch process.

SMTP from a batch file www.computing.net/answers/windows-nt/smtp-from-a-batch-file/16828.html

Creating shortcuts from a batch file www.computing.net/answers/windows-nt/creating-shortcuts-from-a-batch-file/9037.html

Calling an exe from a batch file www.computing.net/answers/windows-nt/calling-an-exe-from-a-batch-file/14553.html