Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: deleting windows subdirectories

by Rex(Wrecks) (Curate)
on Jun 04, 2002 at 16:54 UTC ( [id://171559]=note: print w/replies, xml ) Need Help??


in reply to deleting windows subdirectories

Update: BTW, the File::Find solutions listed here will be much better for implimentation. They won't impose any of the restrictions that system() invariably does.

deltree will work for you on Win9x systems.

For NT4/Win2K/WinXP I suggest rd /s/q <dirname> This works much better.

This is OT but you might want to check out the O'Reilly books on Windows commands (they have several of the small pocket reference ones dedicated to this). You will find the NT4/Win2K/WinXP commandline tools to be quite handy. Not quite as robust as a typical Unix shell, but getting better with every release.

"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://171559]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-20 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found