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

Windows Me - Shut down the computer automatically after defragmentation

November 25, 2013
Updated: April 14, 2022
Quick overview:

Die Windows 98 und Me Defragmentierung ist oftmals eine zeitaufwendige Angelegenheit und dies besonders dann, wenn die Festplatte lange Zeit ohne den Ordnungshüter auskam. Wir haben einen kleinen Trick für Sie, mit dem Sie sich das Leben erleichtern und den Rechner automatisch nach der Defragmentierung herunterfahren können. So können Sie sich z.B. Abends ins Bett legen und der Rechner tut seinen Job und geht dann ebenfalls schlafen.

1. Right-click on the desktop and select New/text file. Open this file and enter the following content:

@echo off
Start /w Defrag.exe/full/all/noprompt/P/H
rundll32.exe user,exitwindows
exit

2. Click on File/Save as... in the menu bar and select File type under All files. Now enter the name Filename in the Defragmentation.bat window. Now select Save.

3. After double-clicking on the saved file, the defragmentation starts and automatically shuts down the computer at 100%.

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