>>>>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.
I looked that up the other day after you posted it and I thought I saw it had a set of parameters much like the Shutdown command... I'm not able to check that out this morning though.
____________________________________
Don't Tread on Me
Overthrow the federal government NOW!
____________________________________