Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Multiple Windows EXEs Within FoxPro
Message
From
31/12/1998 18:47:09
 
 
To
30/12/1998 14:27:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00171620
Message ID:
00172023
Views:
76
>
>How about this:
>
>App1.bat:
>
> @ECHO OFF
> APP1.EXE
> DEL FILE1.DAT
>

>
>App2.bat:
>
> @ECHO OFF
> APP2.EXE
> DEL FILE2.DAT
>

>
>Now, in Foxpro:
>
>  m.fnum = FCREATE("FILE1.DAT")
>  =FCLOSE(m.fNum)
>  RUN APP1.BAT
>  DO WHILE FILE("FILE1.DAT")
>    DOEVENTS
>  ENDDO
>
>  m.fNum = FCREATE("FILE2.DAT")
>  =FCLOSE(m.fNum)
>  RUN APP2.BAT
>  DO WHILE FILE("FILE2.DAT")
>    DOEVENTS
>  ENDDO
>
>

Thanks for your response - It looks like it *should* work but I'm having the same results. Control comes back to FoxPro as soon as the RUN APP1.BAT executes, with the FILE1.DAT deleted and it falls thru.
Ernest
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform