SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Error Code using 'Run' command

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Error Code using 'Run' command
Author Message
Steve M



Joined: 11 Dec 2001
Posts: 3

Post Error Code using 'Run' command Reply with quote

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.

Tue Dec 11, 2001 11:05 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Error Code using 'Run' command Reply with quote

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.

Tue Dec 11, 2001 12:43 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.