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

Zipping Files in Code

Status
Not open for further replies.

PSUIVERSON

Technical User
Nov 6, 2002
95
US
I have a program that outputs specific queries from my tables into data files on our network. I have no problem with the VBA to output these files as .txt or .prn files. However, I need to be able to Zip these files once I am finished outputting them to the specific directories etc.

Anyone know of the VBA to Zip files from an ACCESS module?

Thanks

 
Hi

there may be a neater way, but my first thought would be to write atext file as a batch file (.bat) containing the commands to run zip, and zip the relevant file(s), you can easily do this from code, then shell and execute the batch file Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Thanks ROB. I'll give that a shot and let you know how I make out...Appreciate it...
 
I backup multiple db's daily with this:

thread705-474948
 
That's awesome as well...I'll let you guys know how I make out. Appreciate the generous help...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top