POWEROFF V1.2

Created by Jorgen Bosman, 1999-2000
e-mail: jbosman@village.uunet.be


Poweroff is a small program for Win95/98/NT/W2K
to schedule a shutdown/reboot/logoff/poweroff
at a certain time.

You can only do a poweroff if your PC is a ATX and if it supports
software poweroff.
In Win98, a poweroff is the same as a shutdown.

In order to do a poweroff in WinNT 4.0, you will need a hal.dll
that is capable of shutting down your workstation. 

You can try one that's supplied with service pack 4 (or 5): hal.dll.softex
- Just extract the service pack (with the /x option),
- Rename the x:\winnt\system32\hal.dll to x:\winnt\system32\hal.dll.sav,
- Copy the hal.dll.softex to x:\winnt\system32\hal.dll
- Reboot
- If you like NT to automatically poweroff at shutdown,
  set the follwing registry key to 1:
  HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\PowerdownAfterShutdown

You can use poweroff in batch files by using the command line parameters.
Usage: poweroff [poweroff|shutdown|reboot|logoff] [seconds_to_wait] [-f]

You must specify an action to perform and optionally how many seconds to wait
before doing the action. If -f is specified, then it does a force terminate of
all running applications.
examples: 
- poweroff poweroff  : powers off your pc right now.
- poweroff reboot 20 : rebootds your pc in 20 seconds
- poweroff logoff -f : logs of the current user and stops all applications without notification

Change History:

V1.2: 03-03-2000
 - Added command-line paramters, so that you can use poweroff in batch files

V1.1: 27-05-1999
 - Added a date field
 - Added the current date and time
 - Added the Now button to immediately do the required action
 - Hide now adds an icon to the system tray. Doubleclick the 
   icon to bring the screen back up.
 - Added a force checkbox. If checked, all applications terminate without warning.
 - Changed the format of the time to hh:mm:ss
 - The format of the date field is dd/mm/yyyy
 - Poweroff now also appears in the taskbar

V1.0: 08-05-1999
 - First release