>I have an external piece of software that is used for unattended offsite backups, unfortunately it regularly hangs but holds the telephone line open; thus resulting in a huge bill!
>
>I know that it should have always finished by 2am and want to check if it is still running - if it is I need to either kill the task or reboot the machine (effectively killing it).
Hi, Derek.
Try:
declare integer ExitWindowsEx in Win32api as TheEnd integer nValue
TheEnd(1)
quit
I never tried it. Also, I imagine that Windows Scripting Host must have a way to shut down the machine. Just don't have a reference at hand. George?