Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Issuing a Kill Task or a reboot
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00461600
Message ID:
00461907
Views:
11
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform