Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute a VFP program and then execute another program
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00392654
Message ID:
00392833
Views:
11
>I have a VFP program that contains an encryped login sequence and a form for the admin to add/edit/delete users.
>When a user logs in to this program, I validate the user and then want to execute a non-VFP program, and to pass it three parameters, i. e. userID, admin status, and a validation to allow the program to execute only after passing through the VFP program.
>My problem is passing the parameters to the new program (one written in C++) and then totally exiting the VFP program.
>This is not for =shellexecute() because I do not want the user to return to my program upon exiting.
>What is the best method for passing the parameters upon doing the RUN /N anotherprog.exe?

Don't use RUN; you can spawn an executable and immediately quit the VFP application using the API_APPRUN class in the files section.
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