Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Callling shutdown
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00086398
Message ID:
00086420
Views:
27
>I have a program which updates four files and takes about
>5 minutes to run which is in the startup files so that
>it runs whenever anyone signs on. Would someone tell
>me if there is a command in FoxPro by which I can call
>for shutdown at the end of my program so that the
>client can finish her day by douoble clicking the icon
>for this program and leaving the computer to run the
>program and shut itself down.

Derek,
Look in the Win32API.hlp file (Fox 2.6 & 3.0). There is a function in there to shut down the PC. The function is ExitWindows or ExitWindowsEx. I have used this but failed to get it working properly. Apparently due to permissions. If you get it working, I would like to see the command combination you use.
Regards,
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform