in Test.Bat:
-----------------------------------------
@echo off
cls
echo Test > Test.Txt
rem do some stuff, eg. pack data with zip program
....
Del Test.Txt
in VFP7:
-----------------------------------------
Run /N7 Test.Bat
inkey(2) && wait 2 second just in case
if file( "Test.Txt" ) && wait to end of bat file
inkey(2)
endif
note eg. send zip data to ftp server
You can define th window state in foxrun.pif, located in Home(). /N is for starting without waiting for dos to return, so don't use that parameter and foxpro does wait.
The help might be misleading in that it says you _should_ pass this if starting another windows application. Even in that case you only need it if you want that application to launch and not stop your application. N is simply for NOWAIT.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.