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!

Running other application by code

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
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
 
Are you using WinZIP?


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.



DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
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")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top