Run Program Error

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
aboredprogrammer
Junior Coder
Posts: 40
Joined: Wed Jan 27, 2010 6:31 am

Run Program Error

Post by aboredprogrammer » Tue Feb 02, 2010 9:15 am

Hello,

I have tried many ways to open iTunes using my script. I cannot see what I am doing wrong :? . I have searched throughout the forum, and everything with my Run Program> command looks fine.

I have tried many different ways of loading the program, without success>

1. Run Program>"c:\program files\itunes.exe"
2. Run>"c:\users\Trevor\desktop\iTunes.exe (and .Ink)

I have even tried doing the CreateDir> before the Run Program> line.

Sometimes I get the error: Error Executing "c"\users\Trevor\desktop\itunes.exe (2)

Nothing seems to work :(

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

Post by Marcus Tettmar » Tue Feb 02, 2010 10:11 am

Hi,

This works fine for me:

Run>C:\Program Files\iTunes\itunes.exe

I note you have:

Run>C:\Program Files\itunes.exe

Which looks wrong to me. I would have thought itunes.exe would be in a sub folder of Program Files. In my case it is in C:\Program Files\ITunes\
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Feb 02, 2010 2:05 pm

Sometimes I get the error: Error Executing "c"\users\Trevor\desktop\itunes.exe (2)
From HELP for RunProgram>, the (2) indicates the file was not found so there is something wrong with your path. Also remove the quotes. RunProgram> recognizes spaces in the path so quotes are not needed and in fact will cause problems if used improperly. In the posted line above you have used them improperly by placing them around only a portion of the path. You have also left out the colon ( : ) from that particular line.

User avatar
aboredprogrammer
Junior Coder
Posts: 40
Joined: Wed Jan 27, 2010 6:31 am

Post by aboredprogrammer » Tue Feb 02, 2010 8:55 pm

Thanks!

Simple mistake on my part. Run>C:\Program Files\iTunes\itunes.exe
was the correct path.
aboredprogrammer

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