run Dos Commands in Macroscript

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
caomeisanhao
Junior Coder
Posts: 28
Joined: Wed Jun 08, 2005 2:48 pm

run Dos Commands in Macroscript

Post by caomeisanhao » Wed Jul 06, 2005 7:34 am

hi,guys
I want a action to restart the PC by macroSchuedler 7.3, so I use Dos command shutdown with switch -r (restart)

Run Program>cmd.exe /c shutdown -r

i get the prompt saying "system shutdown in 30 seconds",but after 30 seconds it does not shutdown and restart.no a

so I check the commands,I do shutdown with -l (logoff) :

Run Program>cmd.exe /c shutdown -l

it works and logoff the system, I have no idea. Help!

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Jul 06, 2005 8:53 pm

Use the Macro Scheduler command:

Code: Select all

ShutDownWindows>1
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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