Compiled macro will not end

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
montanan
Junior Coder
Posts: 49
Joined: Mon Jul 09, 2007 3:44 pm
Location: San Jose, CA

Compiled macro will not end

Post by montanan » Fri Sep 21, 2007 10:42 pm

I have a simple macro that runs a database backup script via the command line.

I've compiled the macro to run it on another machine.

Everything works fine with the macro itself, but it does not terminate.

I inserted an "Exit" command at the end of the macro and re-compiled. The macro still will only terminate when I manually press Shift-Esc.

Suggestions welcome!

[Update on this. I figured it out. The last line was waiting for a process to complete that had already completed. Removed that and the process terminates on its own.]
Last edited by montanan on Fri Sep 21, 2007 10:48 pm, edited 1 time in total.

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

Post by JRL » Fri Sep 21, 2007 10:48 pm

Do have a line like:
Let>RP_WAIT=1
If yes the macro will not terminate until the database backup script terminates, If the backup script runs inside Access for example, the macro may not terminate until Access is terminated.

"I inserted an "Exit" command at the end of the macro"

What do you mean by "an 'exit' command"?

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