Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't pass commandline parms using api_apprun
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00843801
Message ID:
00843802
Views:
18
This message has been marked as the solution to the initial question of the thread.
>I'm trying to use Ed's api_apprun class to launch a dos utility that converts a pcl file to a pdf. The utility needs to be run like this from the DOS command line:
>
>
c:\temp> pcl2pdf.exe [pclfilename] [pdffilename]
>
>I did the following from the VFP command window:
>
>
>oApp = createobject("api_apprun")
>oApp.iclaunchdir = "c:\temp\"
>oApp.iccommandline = "pcl2pdf.exe test1.pcl .\packages\test1.pdf"
>oApp.icwindowmode = "HID"
>? oApp.LaunchAppAndWait()
>
>
>However, I get the following error:
>
>Process specified by icCommandLine could not be started.
>
>I have the feeling that api_apprun doesn't like the parameters included in the CommandLine. Any suggestions on how to get this to work?
>
>P.S. - I'm using api_apprun because I need to be able to 1) Hide the DOS window and 2) wait for processing to finish before moving on. If there is anthing else that will meet both of these requirements, I'm game to try.
>
>Thanks for your help!!

Is pc12pdf.exe in your c:\temp folder? Is it in your PS PATH? If not, you'll need to provide the path in the command line.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform