>>>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.
ya, I noticed that too. I suggest using the others suggestion for non-interactive shut down.
Greg Reichert