Computer Hope

Microsoft => Microsoft DOS => Topic started by: JXY on August 20, 2007, 11:34:41 PM

Title: Shutdown command for windows me
Post 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?
Title: Re: Shutdown command for windows me
Post by: ghostdog74 on August 21, 2007, 12:05:58 AM
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).
Code: [Select]
Set colOperatingSystems = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
    objOperatingSystem.Win32Shutdown(1)
Next
Title: Re: Shutdown command for windows me
Post by: Dusty on August 21, 2007, 08:35:48 PM
http://www.computerhope.com/issues/ch000321.htm

Title: Re: Shutdown command for windows me
Post by: JXY on August 22, 2007, 02:46:46 AM
perfect. thanks.