Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a VFP EXE recognize numeric parameter?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00778831
Message ID:
00778833
Views:
17
This message has been marked as the solution to the initial question of the thread.
>Without an option to alter an executable, is there a command line that will allow for numeric switches?
>
>C:\mydirectory\myVFP.exe 9
>Starts the app, but the 9 is acted on as a character.
>
>Tanks in advance (sounds like a military statement).

You can write wrapper EXE. Something like.
C:\mydirectory\myWrapperVFP.exe 9
* myWrapperVFP.exe Main.prg
PARAMETER tcPar1
DO (JUSTPATH(sys(16,1) + "myVFP.exe") WITH  INT(VAL(tcPar1))
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform