View Full Version : How to shutdown/restart PC by a command
bricketts
04-11-2000, 01:56 PM
Any idea what command can be used to shutdown, restart, or close and relog back on?
I think rundll32 /exit shuts down the computer, but not sure. Can someone give me a listing if its known of these three options. I have a network I am wanting to try it on, as we are about to pump out lots of programs using snapshots, and Zen works on a Novell and win95 platform based network..
Thanks all for your help,
Ben
brimstonenite
04-12-2000, 05:04 AM
I think the answer is posted all over the board..nonetheless, here are the answers.
To Log Off user, do the following...
C:\WINDOWS\RUNDLL.EXE shell32.dll,SHExitWindowsEx
To Restart Windows, do the following...
C:\WINDOWS\RUNDLL.EXE user.exe,ExitWindowsExec
To Reboot the computer, do the following...
C:\WINDOWS\RUNDLL.EXE shell32.dll,SHExitWindowsEx 2
To Shut Down computer, do the following...
C:\WINDOWS\RUNDLL.EXE user.exe,ExitWindows
or
C:\WINDOWS\RUNDLL.EXE shell32.dll,SHExitWindowsEx 5
What is it that you're trying to do? I'm kinda familiar with Zen Works snapshot program, I used to do software installations using the snapshot program, Windows 95, on a Novell Network.
If the installing software required a reboot ZEN would catch this and ask the user if they'd like to reboot for the changes to take affect. While creating the program for distribution you also had the option to force a reboot on the user.
Sounds like you might get yourself into trouble messing with the OS program files.
bricketts
04-13-2000, 06:05 AM
I dont know much of snapshotting, my CNE is doing that on this site. However the reason is simply that after the snapshot is installed, or for other reasons even, such as pumping out some types of registry changes, it would be good to be able to have it start through certain routines and commands.
We are currently rolling out Corel Office 2000 as snapshots, and Corel Draw 9 at the moment.
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.