>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.