Because the full file name includes spaces it must be enclosed in double quotes. Here is how you should change your script DIM PROCESS_ID, NUMBER //RUN or OPEN THE XLS FILE AND PROCEED TO REFORMAT RUN( "\"K:\\OCR\\OCR Operations\\Missing Bill Reports\\filename.xls\"", "", PROCESS_ID ) : I am running 24X7 on a Win2000 machine and simply want to open an Excel file : using the RUN command. Naturally, Excel in already installed on the : machine via MS Office. : Here is the syntax I am using: DIM PROCESS_ID, NUMBER : //RUN or OPEN THE XLS FILE AND PROCEED TO REFORMAT : RUN( "K:\\OCR\\OCR Operations\\Missing Bill Reports\\filename.xls" : , "" , : PROCESS_ID ) : Here is the error code I recieve when trying to RUN the file: "An error : occurred while executing automation script. Line 110: Create process : failed. Return code: 193 - %1 is not a valid Win32 application" : Any thoughts on why the scheduler is having difficulty opening a .xls file? I : have used this command successfully to open a .tif file...?!? : Thanks.
|