Hi,
Just Create a dummy file after the original file creation is finished.
And then program can continue
After you finis the second task, delete the dummy file

In the extenal program 
Open file "C:\dummyfile.txt" for output as #1
Close file #1

In mapinfo mb

Do while 1
if fileexists("C:\dummyfile.txt")
        goto exit1      
end if
loop

exit1:

if fileexists( Original File created in external app )  = 0 then
        exit sub
end if

...
..


Kill file "C:\dummyfile.txt"

Regards




Message: 1
Date: Tue, 25 Jul 2006 17:20:53 +0100
From: "Gibb, Stuart" <[EMAIL PROTECTED]>
Subject: [MI-L] File Exist loop
To: <[email protected]>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"


Hi all,

I have an external program which I call from MI. The result of this is a
text file being created which I then read in for input into MI. Does
anyone know how to tell MI to wait until the external file has been
created before trying to open it ?

I'm guessing I need a FileExists Loop of some sorts but am banging my
head against a wall to get it to work.

Many thanks for all your help previously.

Stu


_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to