Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executable switches for compiled programs
Message
From
02/07/2001 11:29:56
 
 
To
02/07/2001 11:20:35
Irv Adams
MSC Managed Care, Inc.
Florida, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00525901
Message ID:
00525904
Views:
11
Hi!

Define the main module (starting mosdule) of the EXE file in the project to be a PRG file. Put the parameters statement as the first line of the PRG. Receive as many parameters as possible, I guess there could be only 32 parameters. If EXE ran with command-line parameter, appropriate parameter of the main PRG will get value of each element of the parameters string. Elements are much like command-line switches separated by space. You can check if certain parameter in PRG got value in such case using "vartype(ParameterN)=='C'" expression.

HTH.

>Does anyone know how to send a parameter to a compiled executable (EXE) from the DOS command line or a Batch file or command window, etc...thanks,
>-Irv.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform