CHKFILE... Perfect.. That was the idea that I was missing !! Thanks Larry
-- Frank Taylor, Systems Network Administrator -- F.J. O'Hara Corp, Boston, MA -- [EMAIL PROTECTED] - 617-790-3093 -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Lawrence Lustig Sent: Friday, February 25, 2005 2:22 PM To: RBG7-L Mailing List Subject: [RBG7-L] - Re: Pause & Pause For Behavior > I wish I could but the part of the code I was looking at was where one line > copies a file to a network mapped drive and then the next line of code > deleted the file from the local directory.. Believe it or not sometimes > (maybe 2 out of 100 times) the delete on the local drive would occur before > the file got written to the Mapped drive, In the case of the copies, you can redo that using MOVEs and turn the entire issue over to the operating system (less to worry about!). For the PDF creation, you could do something like: WHILE CHKFILE(.vFileName) = 0 THEN -- Do nothing. ENDWHILE This will wait only as long as necessary, and will not fail when, at some point in the future, you generate a file large enough to need more than 2 seconds. -- Larry
