Windows Tweaks Logo Microsoft PC Help - 02 blue red
Windows Tweaks Logo Microsoft PC Help - 09 white 120

Windows 98 - Lightning fast shutdown via shortcut

November 28, 2013
Updated: December 6, 2021
Quick overview:

Every time you want to shut down your computer, you are faced with a long journey involving many clicks. You shouldn't have to endure this odyssey, but program your own ways of shutting down with just a few simple steps, turning it into a double-click or keystroke.

And this is how you proceed:

1. Right-click on a free area of the desktop and select New/text file. Now open it by double-clicking on it.

2. Now write the following lines in it:

runonce.exe -q
rundll32.exe shell32.dll,SHExitWindowsEx 1

Fast shutdown via link

Now click on Datei > Save as... and a new window will appear. Under File type choose All files. Then enter the following as the file name: Windows Shutdown.bat (The name itself does not matter, only the .bat must always follow)

3. If you now double-click on it, your computer shuts down without prompting.

The number 1 in the text file can be replaced by the following commands:

0 = Log out user
1 = Shut down Windows
2 = Restart Windows
4 = Force shutdown, regardless of which programs are running. This can lead to data loss if they have not been saved.

NOTE FOR NEW PUBLICATION: This article was produced by Sandro Villinger and comes from the Windows Tweaks archive, which has been built up since the late 1990s.

Founded Windows Tweaks as a teenager in the 90s. His helpful PC tricks made it Germany's most visited Windows site (at the time Sandro looked like this). He then went on to write elsewhere, for example for PC-Praxis, Computer Bild and PCWorld in the USA. Microsoft also poached him from us. Now Sandro is back, finally sharing his tweaks here again. For a stress-free digital everyday life. You can reach Sandro via e-mail.

Leave a Reply

Your email address will not be published. Required fields are marked *

Windows Tweaks Logo Microsoft PC Help - 09 white 120
by Real Tech Experts
Save time and nerves with expert knowledge about software, hardware, AI & Microsoft. 
Windows Tweaks Microsoft PC Help - SINCE 1998 - retina 2

Time-saving tips for PCs, laptops, Windows and software?

Subscribe to our newsletter, receive only our best tutorials & tweaks and exclusive tips for our subscribers. 
Newsletter form
Can be canceled at any time. About 1 - 2 mails per month. The consent includes the information on revocation, shipping service provider and statistics according to our Privacy policy.
© 1998 - 2025 Windows-Tweaks.info
Made in Germany with ❤️ 
For all technology users around the globe.
This website runs on 🌳 GREEN energy
crossmenu
EN