Which file is it?

D

DVS

In the XP OS, there is a file called shutdown.exe in the
WINNT\System32 folder that you can use with different
switches to shutdown, restart....

There is no shutdown.exe file in Windows 2000. Does
anyone know what file is called when you want to shut down?

TIA,
DVS
 
D

Dave Patrick

shutdown.exe is in the Windows 2000 resource kit.

Other possibilities;

psshutdown from sysinternals
http://www.sysinternals.com/ntw2k/freeware/psshutdown.shtml

VBScript
-------------------------------
'0 Log Off
'4 Forced Log Off
'1 Shutdown
'5 Forced Shutdown
'2 Reboot
'6 Forced Reboot
'8 Power Off
'12 Forced Power Off
Const SHUTDOWN = 1
strComputer = "."
Set objWMIService = GetObject("winmgmts: {(Shutdown)}" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("SELECT * FROM Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Win32Shutdown(SHUTDOWN)
Next
-------------------------------

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


:
| In the XP OS, there is a file called shutdown.exe in the
| WINNT\System32 folder that you can use with different
| switches to shutdown, restart....
|
| There is no shutdown.exe file in Windows 2000. Does
| anyone know what file is called when you want to shut down?
|
| TIA,
| DVS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top