>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,