Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Shut Down Windows by a Command

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How I can ShutDown the Windows-98 by a command

I read this command in a Magazine but it didnt works out


rundll32.exe shell32.dll,shexitwindowsEx,n
where n is 0 , 1 , 2
0= logoff
1=shutdown
2=restart

Can any one tell me what is the right way to shut dowm via a Command ?
 
Hi

You can try this one.

C:\WINDOWS\RUNDLL.EXE user.exe,exitwindows.

That will close all programs and shutdown...
 
Are there any other switches to use with this? Say for Reboot?
-Thanks Much
 
If you are trying to make a program to do this, vbworld.net has API code for shutting down, restarting, restarting in msdos, etc. If it's not for programming though, this won't help much
 
Yep there sure is.


To Restart Windows95:
type "rundll.exe user.exe,exitwindowsexectype

but that about all the switches I know....!!
 
yep that will work,

Also a good idea to

START / RUN / MSCONFIG

Select the startup tab, and untick both "Load Power Profiles", then reboot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top