Yeah, just use the Cygwin find command. It's different from Windows's find.
Once u install Cygwin (cygwin.com) u can look at 'man find' or find --help
to see the options u need. Example that lists files older than 30 days: find.exe ./ -mtime +30 -exec ls -la {};
At 02:24 PM 4/12/05 +0530, Maxmelbin Neson (RBIN/EDM3) wrote:
Could anyone tell me whether there is any simple way to list and delete all files on the local drives on a system which is say more than 30 days old . It should not look into Network drives or say CD drives or floppy drives ...
if you want to do it in perl you can use File::Find and File::stat. A _big_ benefit of this script would be, you don't have to remember that cryptic find thing or remember on what to search for in the archives :-)
If you need help w/ let us know...
Alex _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs