lcCommand = 'RUN /N2 oDraw.cProgDrv + ':\New Fox\advanced_pdf_tools\pdftools.exe -i '+; '"'+ cDestination +'"'+'-f "-90" -x "0 0 36 24"' &lcCommandIt works fine. However, I need to be able to wait for the program to complete prior to continuing with the remaining code. I have read that it may be better to use WSH but I am not sure of the correct syntax. I have tried the following with no success:
lcCommand = 'RUN /N2 oDraw.cProgDrv + ':\New Fox\advanced_pdf_tools\pdftools.exe -i '+; '"'+ cDestination +'"'+'-f "-90" -x "0 0 36 24"' oShell = CREATEOBJECT('WScript.Shell') oShell.Run(lcCommand,2,.T.)Any suggestions on what I am doing wrong or alternate solutions would be greatly appreciated.