Computer Hope
Microsoft => Microsoft DOS => Topic started by: JXY on August 20, 2007, 11:34:41 PM
-
I was just wondering the other day, if there's a shutdown code for windows me.
I've tried the usual ' shutdown -m **** -t "**" -c "*************" -s etc '
but it doesn't seem to work for windows me.
Plus, it only has ms-dos, no cmd.
Anyone think they know the answer?
-
you will have to check the documentatoin of shutdown for the ME version. This aside, you can this vbscript too, however you should check whether ME has WSH/cscript (i think it has, but old version).
Set colOperatingSystems = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
objOperatingSystem.Win32Shutdown(1)
Next
-
http://www.computerhope.com/issues/ch000321.htm
-
perfect. thanks.