In Access Module I call a shell function to zip a file in my directory and I would like to know if somebody knows how can I know when the zip job was finish before making something else with the zip file
here is some code I used to create a zip file
---------------------------------------------
Dim FileToSave As String, PriceList As String, ZipFileName As String
'save the Parts table as an HTML file
FileToSave = "X:\HTML\UniversalPrices" & Format(Now, "-mm-dd-yyyy" & ".htm"
'Launch WinZIP
Label1.Caption = "Launching WinZIP"
ZipFileName = "X:\HTML\UniPrices.ZIP"
Call Shell("c:\winzip\Winzip32.exe -a " & ZipFileName & " " & FileToSave, 1)
------------------------
Also this URL may help too.
This the code that I'm using and my question is How can I make a "Wait" between the time the computer compress and the time that he create the EXE file?
'Copy the original database to my C drive
SourceFile = "R:\Redax PO\Redabck_be.mdb"
Destination = "C:\Temp\Redabck_be.mdb"
FileCopy SourceFile, Destination
'Launch Winzip ans zip the file
Call Shell("C:\Program Files\winzip\Winzip32 -min -a c:\temp\redabck_be.zip C:\Temp\Redabck_be.mdb"
SendKeys "{^} & A "
'Make an EXE file with the Db zip
Call Shell("C:\Pkware\Zip2exe.exe c:\temp\redabck_be.zip"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.