>>Hi All,
>>
>>How can I turn off the computer from VFP?
>
>
>loShell = createobject("Shell.Application")
>loShell.ShutDownWIndows()
>
>
>When testing this, make sure every thing else is saved and closed.
Shutdown my computer dialog is coming but waits for my click.