Execute a variable

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

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 Nov 13, 2008 10:26 am

You need to write the commands and THEN include the temp file. If you write a command, then include it, then write another, then include it, you will run the file twice, so the second time the first line again gets executed.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

aks
Newbie
Posts: 18
Joined: Wed Oct 15, 2008 8:54 am

Post by aks » Thu Nov 13, 2008 1:09 pm

Hi,

I have also tried creating different file names for the include. Still this will execute the first file that is loaded. Please help me with this issue.

Regards,
Aks

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 Nov 13, 2008 2:12 pm

I think we need to see your full script to have any idea of what is happening.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Use Macro> instead of >Include

Post by gdyvig » Thu Nov 13, 2008 4:12 pm

The Repeat> statement is missing from the post. If the Include> statement is within the Repeat/Until block additional code will be included in your main script.

Have you tried using the Macro> command instead of Include> to execute the command? This way you will only execute the current cmd and the main script will not keep growing.

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