Pausing a procedure

A

Andy

Hi,

I have db that crates some files, then runs a shell to
zip up the files using the Winzip command utility and
then use the Kill command to delete the unzipped files
once zipped as a tidy up.

The issues is that the Kill command kicks in before the
zipping is finished and I would like to try and delay the
final step in the procedure. Can you adivse of the best
way to do this.
Can I use TimerInterval or something to do this.
Ideally I would like to delay the program for around 5
seconds to allow winzip to finish it's task before
continuing with the Kill command.

Hope this is enough information.

Andy
 
D

Dirk Goldgar

Andy said:
Hi,

I have db that crates some files, then runs a shell to
zip up the files using the Winzip command utility and
then use the Kill command to delete the unzipped files
once zipped as a tidy up.

The issues is that the Kill command kicks in before the
zipping is finished and I would like to try and delay the
final step in the procedure. Can you adivse of the best
way to do this.
Can I use TimerInterval or something to do this.
Ideally I would like to delay the program for around 5
seconds to allow winzip to finish it's task before
continuing with the Kill command.

Hope this is enough information.

You may be able to use the ShellWait function posted here ...

http://www.mvps.org/access/api/api0004.htm

.... to wait until the shelled program finishes. If that doesn't work
and you need to wait for a preset interval, you can call the Sleep API
to do it, as directed here:

http://www.mvps.org/access/api/api0021.htm
 
A

Andy

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top