Perl: the Markov chain saw | |
PerlMonks |
Re: deleting windows subdirectoriesby Rex(Wrecks) (Curate) |
on Jun 04, 2002 at 16:54 UTC ( [id://171559]=note: print w/replies, xml ) | Need Help?? |
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!
In Section
Seekers of Perl Wisdom
|
|