LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to shutdown the host system from menu bar

I need to shut down th host system from a menu bar. I have created a entry in one of my pull down menus called "Shut down". When user chooses this option I want the host system execute system shut down. Exactly same as Windows system shut down. Thanks.
 
Michael
0 Kudos
Message 1 of 2
(2,972 Views)

Under windows XP the shutdown.exe command is present that helps you shut down the local or a remote computer. With appropriate parameters you can record the shutdown event in the event log, optionally restart the computer or simply disconnect the current user.

For help on the command type shutdown -? at a command prompt.

This command is also present in windows 2000 resource kit.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,966 Views)