Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters between .EXEs
Message
From
30/12/1998 10:48:32
 
 
To
30/12/1998 10:13:05
Fausto Garcia
Independent Developer
Lima, Peru
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00171519
Message ID:
00171531
Views:
25
>Hi to all
>
>How can we do to call an .EXE file from another .EXE file passing it a parameter?
>
>Both .EXEs are generated with Visual FoxPro 5.0
>
>Thanks

First.EXE calls Second.EXE

First.EXE

MAIN.PRG && or wherever call needs to made from
DO Second.EXE WITH 'Data to be Passed' && or can be Second('Data to be passed')


Second.EXE

MAIN.PRG
PARAMETER tcInfo
?tcInfo

Should show on screen 'Data to be Passed'

If you need to call the first, put a PARAMETER statement (or LPARAMETER if LOCAL) as it's first executable line with as many variables as you need to pass it.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform