• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

Serving up Zip files on an FTP server

Lets say I'm running a windows 2003 server where photos are uploaded daily to one folder and I want to zip up yesterdays image files and post them on my ftp server.  The file name could be "photo.zip" and just overwrite itself daily or it could be named "03-20-2007.zip" and archived.
What is the best way to accomplish this?

Thanks!
0
Bang-O-Matic
Asked:
Bang-O-Matic
  • 2
1 Solution
 
Phadke_hemantCommented:
best way is to use the script at scheduled time :)
0
 
Bang-O-MaticAuthor Commented:
Thanks but I'll need an example.
0
 
vpt-incCommented:
Download ALZip from here:http://www.altools.net/ALTools/ALZip/tabid/53/Default.aspx
or some other zip software that supports zipping from the command line.  Now you create the .cmd file that will run the command to execute your zip.  

With ALZip the syntax would be:

alzip -a "c:\fullPathOfWhatYouAreTryingToZipGoesInRightHere" "c:\fullPathOfZipToAddItToo.zip"

So just create a new text file on your desktop and save it with the command in the text file.  Rename the textfile to textfileOrWhatever.cmd then schedule this .cmd in windows control panel -> scheduled tasks.  ALZip defaults to zipping a directories full contents if you don't specify the file/files within the directory to zip.
0
 
vpt-incCommented:
Make sure you install ALZip before you try to run the command = P.  You can also type these commands in at the command prompt if you want to play around and get the hang of it.
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now