Local oprocess As api_apprun Of Process.vcx lcCommandLine="C:\Printfile\GWSP.exe /sWIDSPOL\*.*" lcStartInFolder=fullpath(".") oprocess=Newobject('api_apprun','process', '', lcCommandLine, lcStartInFolder, 'HID') oprocess.LaunchAppAndWait()The last parameter is "HID" if you want to hide the command window; it can be also "NOR" (for normal) if you want to show it. The parameters are explained inside the code of the api_apprun class.