Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatically zip files based on date

Status
Not open for further replies.

Delphiwhat

Programmer
Apr 1, 2003
74
EU
Hi all

Hope someone can point me inthe right direction.

I have a folder consisting of hundreds of files. What I want to do is automatically zip them based on date. The program or script should run automatically.

Can this be done using perl ? scirpt?

so all files from 01/01/2005
to 10/01/2005

should be zipped into
01012005.zip file

The server is win nt box

thanks for you help
 
You're looking for File Test operators. Open up a command prompt and type perldoc -f -M to get the descriptions of these operators.

- Rieekan
 
I suspect you're also going to need a date/time module like Date::Calc and possibly the Archive::Zip module.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top