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

Zip File

Status
Not open for further replies.

DUF

Technical User
Mar 10, 2001
107
IE
Hi,
I want to Zip a Access .mdb this is the code I came up with
Private Sub Command24_Click()
Call Shell("c:\program files\winzip\winzip32.exe" & "News.zip" & "NewsAgt.mdb")

End Sub
It's telling me that it can't fins the file

what is the correct way to code this????


regards

Duf
 
Private Sub Command24_Click()
Call Shell("c:\program files\winzip\winzip32.exe" & " News.zip" & " NewsAgt.mdb")
End Sub

I just put in a few spaces as you Shell string was all cancatenated together without any spaces to designate the file names from each other or the path to winzip. Maybe this will help.


Bob Scriver

Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top