On Mon, 13 Jun 2005, Asad wrote:
> I need to write a script to delete 4 hours old files and
> directories on Windows. I am planning to use Perl to accomplish this.
> I understand the "-M" would delete at least a day old files, but is
> there a way to delete 4 hours old files and directories.
Yes, it should be possible.
Hint: on Unix, "stat $filename" would help you:
<http://perldoc.perl.org/functions/stat.html>
I don't use Windows so I can't verify that it'll behave the same way
with ActiveState/Windows, but I suspect it will work just fine.
> Thank you.
You're welcome.
--
Chris Devers
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>