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

Zipping and FTP'ing from within Access 97

Status
Not open for further replies.

GreenFella

Programmer
Oct 23, 2001
41
CA
Howdy.

Is there anyway to execute a popular Zip program (WinZip or PKZip) from within Access 97 and then intiate an FTP session to send the zipped file to a specific FTP site.

TIA
Greenfella
 
You can programmatically add a file to a zip file using a Shell statement and Winzip's command line. For example:

Shell "c:\program files\winzip\wzzip -a c:\mydata\mytest.zip c:\mydata\mytest.txt"

creates the mytest.zip file with the mytest.txt file.

You'll need to download and install the WinZip Command Line Support Add-On which you can find at:


The add-on comes with a help file that details the necessary parameters.

I haven't done much with ftp, so cannot offer assistance with that.


Rob
 
I just found out also that you can call the actual Winzip32 program without having to install the add-on. The only thing that changed in the following example is that I'm calling the winzip32 program rather than the wzzip add-on program. I've also attached the link to the specific website page.

Shell "c:\program files\winzip\winzip32 -a c:\mydata\mytest.zip c:\mydata\mytest.txt"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top