command line running not returning after completing script

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
jiby
Junior Coder
Posts: 30
Joined: Fri Feb 26, 2010 12:26 pm

command line running not returning after completing script

Post by jiby » Tue Sep 14, 2010 6:01 pm

Hi,

I am executing the script from command line like
> msched.exe c:\script.scp

After I press enter, prompt is returning and script is executing in background.

Can somone tell me, if there is a way by which I can make the msched.exe return to next prompt after the script executes.

Thanks
jiby

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 Sep 14, 2010 7:17 pm

Try:

START /wait msched.exe c:\script.scp
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

jiby
Junior Coder
Posts: 30
Joined: Fri Feb 26, 2010 12:26 pm

Post by jiby » Wed Sep 22, 2010 1:40 pm

Thanks it worked. But I tried to execute the same using TCL language. But due to some limitations, it is not able to perform because of the reason provided by them
"START is a Windows command console built-in, not an actual Windows command"

Is there any other way we can do using actual Windows command?

-jiby

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Wed Sep 22, 2010 3:50 pm

So try:

cmd /c start /WAIT /B msched.exe c:\script.scp

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