Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Batch file needs returned result of EXE
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00768593
Message ID:
00768622
Views:
25
You could set a environmental variable and then assign the value to it in foxpro application; after that in bat file you could check:
if envvariable goto...

Other approach may include creating a flag file in foxpro application indicationg success; after that in bat file you could check:
if exists filename goto...


>My clients need me to write them a .BAT file which will call a VFP7 .EXE, then use the value returned from the .EXE in some way.
>
>For instance:
>If my main .PRG of the CUST.EXE is:
>
>SELECT * FROM cust WHERE dDate > DATE() INTO ARRAY la1
>RETURN _TALLY > 0
>
>
>How would I assess .T. or .F. in the batch file?
>
>Can I say:
>
>If CUST.EXE = True Then
>.
>.
>.
>End If
>
>In a batch file? I'm a little rusty on .BAT file syntax.
>
>- George
Previous
Reply
Map
View

Click here to load this message in the networking platform