Restart

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
Danny

Restart

Post by Danny » Wed Mar 05, 2003 11:36 am

What code, if any, should I use to restart the pc ignoring open files. I have tried to use Ctrl, Alt & Del, but this doesn't seem to run.

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 Mar 05, 2003 3:33 pm

FYI:

ShutDownWindows>3 will shut down, ignoring open files
ShutDownWindows>2 will restart computer

I don't think there is a combination of both like
ShutDownWindows>5 which will restart, ignoring open files. :?:

:!:
Sugestion for future release:
Perhaps the four existing parameters could be redifined as binary values that could be totaled to combine them? This would initially mean changing parameter 3 to 4, just to force the action.. Then we could use 3 to Logoff/Reboot, and 4, 5, 6 to Shutdown, Reboot, Logoff with forced action (Hmmm, no use for the value of 7, but that's OK).
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Mar 05, 2003 4:34 pm

Hi,

We've added this in 7.2. We can't change the values for the options for backwards compatibility reasons, so the new values are:

0: Shutdown
1: Reboot
2: Logoff
3: Forced Shutdown
4: Forced Reboot
5: Forced Logoff

7.2 is planned for release sometime in April.
MJT Net Support
[email protected]

Lumumba

Post by Lumumba » Wed Mar 05, 2003 9:12 pm

Description: Quick ShutDown

free Windows shutdown utility. When Quick ShutDown is running, an accurate miniature icon appears on the taskbar on the end opposite the Start button. When you click it with the left mouse button, it shutdowns or reboots your computer. You can set a keyboard shortcut for any action - shutdown, reboot and logoff. Quick ShutDown optionally terminates programs that are not responding

Windows 95, Windows 98, Windows Me, Windows NT, Windows 2000

So you can use this, till MSched provides it in April.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Fri Mar 14, 2003 2:55 am

Hi Support,

Plesae do take into account that the shutdown may be problematic, if not impoosible, in the following situation:
1. RP_WAIT is set to 1 (in a currently running script), AND
2. both Macro Scheduler and the script are actively running.

The computer may become irresponsive (hang).

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