The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Any DOS batch gurus around? by Naruki2003-09-06 15:29:38
  Take advantage of an old DOS feature... by firehawk 2003-09-06 16:05:36
RD (or RMDIR) will only delete a directory if it's empty, so you just use FOR /R to enumerate the directories. It's one line, so you don't even need a batch file. Like this (not tested):

for /r . %f in (.) do rd %f

You can replace the first "." with a drive/path if you want the search to be rooted somewhere other than the current drive/directory.
[ Reply ]
    Note: That won't work in Win9x/ME... by firehawk2003-09-06 16:10:08
    How to get it work within a batch file by corb1bri2004-09-03 14:36:03

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)