Delete Folder with Dos (with * code)

Posted: Sunday, 18 September 2011 in Blackberry

Here is wat to delete Folder with wildcard code

for example we have Folder in C:\aku which consisting of :
ID123456
ID234567
ID345678
AB12345
AB23456

If we want delete folder with beginning ID, write this code into Notepad
and save as with .BAT extension
 ———————————————–
cd C:\aku
for /D %%f in (ID*) do rmdir %%f /s /q
————————————————

run the BAT file, so it will delete All folder beginning with ID in c:\aku

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s