Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Turn off the computer
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01261227
Message ID:
01261511
Views:
8
>>>>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!
____________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform