Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API_APPRUN w/Parameters
Message
From
04/08/2005 15:36:18
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01038381
Message ID:
01038691
Views:
21
Maybe I have an older version of the class.

The following fails:
1. When I don't include the full path.
2. If I put any parameter in the command line.

I have another related question.
Using the GetEnv( Temp ) we are getting the temp folder but it is
geeked out w/"~" in the path.

The API_APPRUN class will not run correctly using that path.
How do I get to the full path?

I appreciate any help you can give me.

>>I can't remember how to pass a parameter using his Ed Rauh's class.
>>It seems like everytime I pass anything but the name of the exe it fails.
>
>Hi Dan,
>
>You path parameters as a part of the command line parameter.
SET CLASSLIB TO PROCESS.VCX ADDITIVE
>lcParams = "H:\temp\test.txt"
>lcCommandline = "NOTEPAD.EXE " + lcParams
>oProcess = CREATEOBJECT('API_AppRun', lcCommandline, "", "NOR")
>oProcess.LaunchAppAndWait()
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform