Scott Burks wrote:
>
> This might be simple, but I haven't found a solution yet. I have a
> script that I use on our Unix boxes that uses 'find' to get a list of
> files in a certain directory that are a certain number of days old and
> removes them from the system (find / -name * -mtime +45 -exec rm -rf {}
> \;). I need to port this to a Windows 2000 Server (he shudders as he
> says this) and haven't been able to find a command or module that will
> do the same search based on the age of the file. Can anyone clue me
> into some Windows magic please.
You should have a program called find2perl that ships with the standard
distribution.
find2perl / -name "*" -mtime +45 -exec rm -rf {} \;
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]