Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatic Reboot on network disconnect?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00098595
Message ID:
00098621
Views:
30
After the directory disappears you will want to wait a specified amount of time as you have stated. However, I think that the command you want is ...

DECLARE SHORT ExitWindowEx IN Win32API SHORT uFlags, INTEGER dwReserved

The values for uFlags are

0 - Log Off
1 - Shutdown
2 - Reboot
3 - Force Reboot
4 - Power Off

The value for dwReserved should always be 0.

If there are applications (such as M$ Word or Excel) with unsaved documents opened you can obviously see the problem with the Reboot option.

Good Luck.
Previous
Reply
Map
View

Click here to load this message in the networking platform