Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing paramaters to an exe from command line
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00181105
Message ID:
00296741
Views:
18
>Hi,
>
>Have you done this yourself? I try what you said but it does not work.

Absolutely. The one restriction, as David Frankenback pointed out, is that you must use a program as the main project file for the application. You can't use a form to do this. If you currently have a form as the main project program, add the following as the main program for your project:

LPARAMETER uParm1, uParm2, uParm3, uParm4 && more if you want them
DO FORM main form for the project WITH uParm1, uParm2, uParm3, uParm4
QUIT

Yes, I have tried this, and use it routinely. There are some command line switches used by the VFP runtime engine that may be stripped - I generally avoid using / or - as the lead character so that I don't have to worry about it.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform