A hint for you windows users out there

I was fixing another windows box those days and I was forced to check the fragmentation, which was the biggest blocker on that system, disregarding the user and the fact that the system got more than one windows partition. So I came up with a little trick, using defrag.exe from shell:

%windir%\system32\defrag.exe -f c:
%windir%\system32\defrag.exe -f d:
%windir%\system32\defrag.exe -f e:

The example shown here defrags the drives C, D and E one after the other without user interaction.

Author:

2 thoughts on “A hint for you windows users out there”

  • Heisser Tipp!

    Kleine Idee dazu: am Ende des Scripts einfach ein Shutdown einbauen und dann kann man sich ins Bett legen. Die Kiste fährt dann ja nach getaner Arbeit runter…

  • Ja – du hast Recht. Ich nutze selbst so ein Script, das mir vom Virenscanner bis zum Defrag alles durchlaufen läßt und die Kiste dann nach Stundenlanger Arbeit schlafen schickt…

Leave a Reply

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