Switch to Kixtart (
http://kixtart.org Kixtart is CareWare)
Is has both..
shell()
run()
Shell() -- runs the command in the bracket and waits for its completion before executing the
next line of code.
Run() -- runs the command in the bracket and continues to the next line of code
--
Dave
| David,
|
| I tried both and it did not work. It appears the issue relates to the file
| not being completely written in my line 01 of code.
|
| "David H. Lipman" wrote:
|
| > Ooops !
| > Scratch the other reply...
| >
| > Try the syntax...
| >
| > %comspec% /c start /wait command_to_wait_for
| >
| > or
| >
| > cmd /c start /wait command_to_wait_for
| >
| > --
| > Dave
| >
| >
| >
| >
| > | > | Steve,
| > |
| > | The CALL processes the second line of code without waiting for the CALL to
| > | finish.
| > |
| > | John
| > |
| > | "Steve N." wrote:
| > |
| > | > John wrote:
| > | >
| > | > > I would like to write a batch file that utilizes an asynchronous command to a
| > | > > line of code. The next line of code would not be run until the process of
| > | > > the asynchronous command finishes. Does anyone know of such a command? I
| > | > > know this can be done by using VBA and the SHELL command but want to have it
| > | > > in a batch file command. Thanks-John
| > | >
| > | > Use the CALL <filename> command in the batch file to reference another
| > | > batch file or command, the rest of the batch file will not progress
| > | > until the processes finish from the called file and returns control to
| > | > the originating batch file.
| > | >
| > | > Steve
| > | >
| >
| >
| >