Hi,
I have currently got some code within an Access97 app which is used to zip some files to a specified directory. I am achieving this using pkzip:
Call Shell("pkzip25.exe" & " -add -move " & archivePath & "\" & filename & " " & archivePath & "\*.mdb", vbHide)
This works fine when the code is initially called but if this shell code is called a second time within a few seconds of the first call, an error comes up basically saying that it couldn't do the second zip because the first zip is still zipping. I'm just wondering if there is some sort of code which I could use to check and see if pkzip is currently in use - if it is not then I can use the command above, otherwise I can wait a certain length of time before trying again.
Any thoughts, comments would be greatly appreciated.
Cheers
I have currently got some code within an Access97 app which is used to zip some files to a specified directory. I am achieving this using pkzip:
Call Shell("pkzip25.exe" & " -add -move " & archivePath & "\" & filename & " " & archivePath & "\*.mdb", vbHide)
This works fine when the code is initially called but if this shell code is called a second time within a few seconds of the first call, an error comes up basically saying that it couldn't do the second zip because the first zip is still zipping. I'm just wondering if there is some sort of code which I could use to check and see if pkzip is currently in use - if it is not then I can use the command above, otherwise I can wait a certain length of time before trying again.
Any thoughts, comments would be greatly appreciated.
Cheers