Windows XP, Vista, 7 – Defragment Several Disks Automatically Monitoring

Windows XP, Vista, 7 - Defragment Several Disks Automatically Monitoring

Regular defragmentation keeps the system performance consistent. But you cannot sit at your PC through this entire process. What is also irritating is that defragmentation needs to be manually activated if there are several hard disks.

The graphical interface of Windows’s defragmenter does not provide the option to process several drives one after the other, at least under XP. What a lot of people don’t know is that Windows has an additional command line tool called ‘defrag.exe’ that is suitable for batch processing as well. You can use it to automate the defragmentation of several drives. If you operate a system with drives C, D and E for instance, enter the following in Notepad:

@echo off
defrag.exe -f c
defrag.exe -f d
defrag.exe -f e

Save the file as ‘defrag.cmd’. If you are using other drive names or more drives, change the file accordingly. Double click this file to defragment all drives continuously. You can also schedule this to run at a specified time using Windows Scheduled Task. However you need to be logged in with administrator rights for running the file. The used parameter ‘-f’ carries out the defragmentation even if the hard disk has less than 10 percent of free space, without pausing for an error message. But the process takes too long in that case. What you can do is delete the large files that are no longer required.

Vista and Windows 7 regulate defragmentation automatically on the basis of a schedule. Irrespective of that, you can either use the batch processing operation via ‘defrag.exe’ or even select several drives simultaneously with the graphical interface.

There are two methods in both Windows Vista and Windows 7 to open the Defragment UI. You can either open the disk defragment from Start Menu > Accessories > System Tools > Disk Defragmenter or

  • Right click a drive entry in the Explorer of Windows Vista / Windows 7
  • Select Properties in the context menu
  • In the Properties dialog box that pops up, go to ‘Tools’ tab
  • Now, click the ‘Defragment now’ button

Disk Defragmenter tool can be found on Accessories > System Tools. (Left: Windows Vista, Right: Windows 7)

Right click a drive entry in the Explorer, and select Properties

In the Properties dialog box that pops up, go to ‘Tools’ tab and click the ‘Defragment now’ button (Left: Windows Vista, Right: Windows 7)

To automate defragmentation in Windows Vista through graphical interface follow the below steps

In the Disk Defragmenter Window

  • Click the ‘Select Volumes’ button
  • Now activate several drives for defragmentation or ‘Select all data carriers’
  • You can also automate the Defragmentation, by selecting Modify schedule in the Disk Defragmenter and change the timings
  • To defragment immediately, click the Defragment now button in the Disk Defragmenter window

Windows Vista  Disk Defragmenter

Windows Vista Disk Defragmenter

In Windows Vista Disk Defragmenter, Select the Volume to Defragment

Modify the Schedule of the Disk Defragmenter

Modify the Schedule of the Disk Defragmenter

To automate defragmentation in Windows 7 through graphical interface follow the below steps

In the Disk Defragmenter Window

  • Keep the [ctrl] key pressed and then select the desired drives by clicking the entries one after the other
  • You can also change the schedule of the Disk Defragmenter by clicking the

Windows 7 Disk Defragmenter

Windows 7 Disk Defragmenter Automatic Schedule Options

Windows 7 Disk Defragmenter Select disks for Schedule

I hope this article is useful to you. Please leave your comments below.

Tags:

Raja Rajan Avatar

Help Us Grow

If you like this post, please share it with your friends.

You are free to copy and redistribute this article in any medium or format, as long as you keep the links in the article or provide a link back to this page.

Subscribe to Newsletter




Privacy Settings

Privacy & Cookie Overview

Our website uses cookies to provide you with the best user experience possible. These cookies are stored in your browser and perform essential functions such as recognizing you when you return to our website, as well as helping us to understand which sections of the website you find most useful and engaging.

To learn more, you can read our Privacy & Cookie Policy or reach out through our Contact form.

Strictly Necessary Cookies

Strictly Necessary Cookies must always be enabled to ensure the proper functioning of this website and to allow us to provide you with excellent service. These cookies are also essential for saving your cookie preferences.

Google Adsense

We use Google AdSense to keep this site free by displaying relevant ads. AdSense requires essential cookies that cannot be disabled, but you can manage other cookies. We respect your privacy and provide options to control non-essential cookies.

For more details on how Google handles your data, visit Google's Data Usage Policy. Please review our Privacy Policy for more information on how we protect your data.

AddToAny

We use AddToAny for social sharing. It doesn’t store cookies, ensuring a privacy-friendly experience. AddToAny complies with GDPR and CCPA by default.

For more, see their Privacy Policy.

OneSignal

We use OneSignal to send notifications to users who opt in. OneSignal complies with GDPR and is certified under the EU-US and Swiss-US Privacy Shield frameworks.

For more, see their Privacy Policy.

3rd Party Cookies

This website utilizes third-party cookies, which can enhance your experience and support our ongoing efforts to improve our services.

Google Analytics

We use Google Analytics to collect anonymous data, such as visitor numbers and popular pages, to improve user experience and site performance. Keeping this cookie enabled helps us refine the site based on visitor activity.

For more information, see Google’s Privacy Policy.

Discover more from Prime Inspiration

Subscribe now to keep reading and get access to the full archive.

Continue reading