Improve your productivity and save time.  Let your system work for you.
HiTek Software Home
 
Subject How to zip files in multiple folders at the same tree level
Version 6.x
Date   07/22/2007
Message Melvin, 
Can you help me with programming a task with automize? I have a web server with 100 or so sites on it. Each site has a user file called web4clubsite.mdb. I would like to zip all the web4clubsite.mdb files and their directory path to a single daily zip file that I can then ftp off site. I know how to do the ftp portion but I am unable to get the zip portion to include all the web4clubsite.mdb files.
Reply1 Hi Stuart, 
1) The zip task can only start at a single directory. So, if the file for each site is in a separate folder, it will not work. 
2) You could do the following: 
a) Copy all the folders containing these user files to a master folder. It will be troublesome to create 100 different copy tasks, so you may want to use a single batch file, and use the dos 'copy' command there and then copy all the files/folders to the master folder. 
b) run this batch file using the windows command task. 
c) Zip the master folder and ftp it off site. 
-- Sincerely, Melvin Desilva Hitek Software
Reply2 UPDATE: Feb 2005 : Since the ZIP task supports subdirectory zipping, if the parent directory is set as the root zip directory, then all the subfolders can be zipped. Simply set the filename filter = .mdb
Reply3
Reply4
Reply5