Throught out my script I create and delete files and objects. For
example: I copy a file to a new folder then wait 3 seconds before I
see if the file exists in the new destination. I assume that the
script can run faster than the copy process so the If FileExists can
run before the Copy is complete.

Is this true. Or does the next line not process until the previous has
completed it's process.
Throughout my script I have a total of a minute and 30 seconds in total
waits.

RE: Is a Wait needed by ESP

ESP
Thu Nov 03 15:04:06 CST 2005

Look into Asynchronous Scripting

ESP





"lebeau777@hotmail.com" wrote:

> Throught out my script I create and delete files and objects. For
> example: I copy a file to a new folder then wait 3 seconds before I
> see if the file exists in the new destination. I assume that the
> script can run faster than the copy process so the If FileExists can
> run before the Copy is complete.
>
> Is this true. Or does the next line not process until the previous has
> completed it's process.
> Throughout my script I have a total of a minute and 30 seconds in total
> waits.
>
>

Re: Is a Wait needed by de

de
Thu Nov 03 16:12:55 CST 2005

As long as you are doing the file copy internally (ie not shelling out to
CMD.EXE to do the copy) you don't have to put in a wait. I am running many
mission critical scripts this way with no problem whatsoever.