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

Hello, I’ve looked at various topi

Status
Not open for further replies.

Gnism

Technical User
Jan 9, 2003
29
US
Hello,
I’ve looked at various topics throughout Tek-Tips and I haven’t come across exactly what I’m looking for. I’d like to be able to press a button that would zip the current database and attach it to an email.

I'm at the point where I can copy my current database and attach it to the email, but it’s the zipping that I can’t figure out. Would I need to use some form of WinZip’s command prompt (how???) or is there code one could use for “WinXP’s compress file” ability if WinZip is not installed?

Gnism.
 
Hi Gnism,

On winzip.com there is a download for winzip that makes it accessible from command the command line. You could then use these commands via the shell.command function in the code behind the button.

Make some tests with it. I found that I could not zip files that were on network drives, but first had to copy the files locally, then move the zip back to the place in the network from were they from....

Hope this help..!

DerickD

 
Thanks DerickD, I'll check it out and hopefully get it to do what I need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top