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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS Script to zip files

Status
Not open for further replies.

dbadmin

Programmer
Jan 3, 2003
147
US
Hi,

I am in the process of compressing some files regularly under a certain folder. I want to use pkzip utility to achive this. I did write the script to just cd to the folder and run pkzip with a wildcard ("*"). Is there any way I could do a "find" on the folder and loop through that and run pkzip on each files individually so that it won't touch the new files created.

Thanks,
dbadmin
 
Have a look at the help for for, in particular for /R
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top