>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.