Error executing file

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
grevesz
Newbie
Posts: 4
Joined: Thu Apr 20, 2006 1:25 pm

Error executing file

Post by grevesz » Wed Apr 26, 2006 11:32 pm

Hello,

I am evaluating Macro Scheduler (which means I am brand new to it, so I apologise for potentially stupid questions). I created the code below, which returns an error upon trying to execute the very first command.

The .xs file (H:\Exceed\tasDEV.xs) is associated with an application (Exceed) and if I type H:\Exceed\tasDEV.xs in a DOS window, it starts up as it should.

The exact error message is: Error executing H:\Exceed\tasDEV.xs (11)
There is an OK and an Abort button. Both make the error window disappear but nothing else happens.

Any help would be highly appreciated!

Thanks,

Gabor


RunProgram>H:\Exceed\tasDEV.xs
WaitWindowOpen>tasdev*
IfWindowOpen>TASDEV
Goto>Su
Else
Wait>2
Send>mypassword
Endif

Label>Su
Send>su - oracle
Press Enter
Wait>1.08
Send>mypassword
Press Enter
Wait>1.02
Send>. .gabor
Press Enter


Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Thu Apr 27, 2006 1:19 am

.xs is a script not an executable file, you could try running it in a command window like this:

RunProgram>cmd /c H:\Exceed\tasDEV.xs

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Apr 27, 2006 7:16 am

Actually what you should do is use ExecuteFile not Run Program. Run Program runs a program or executable. To execute a file based on it's file extension you should use ExecuteFile:

ExecuteFile>H:\Exceed\tasDEV.xs
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

grevesz
Newbie
Posts: 4
Joined: Thu Apr 20, 2006 1:25 pm

Post by grevesz » Thu Apr 27, 2006 3:41 pm

That's a very clean solution!
I tested it and it works like a charm!

Thanks again!

Gabor

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts