Results 1 to 2 of 2

Thread: Defragment multiple disks / partitions

  1. #1
    Join Date
    Apr 2008
    Posts
    438

    Defragment multiple disks / partitions

    In Windows 2000/XP it is not possible for the defragmentation to select multiple partitions. It is called to handle a batch file through DOS.
    Create a text document in the windows directory. Call it dfrgall.bat (TXT to go).
    Fill following rules:
    Code
    @ echo off cls echo Defragmenter Loading ... defrag [your drive]: defrag [your drive]: echo Defragmenter completed
    Fill in your drive letter of the disk drive you want to defragment.

    To run the script to start up in Run: dfrgall and press OK.

  2. #2
    Join Date
    Apr 2008
    Posts
    439

    Re: Defragment multiple disks / partitions

    The method to use is by creating a batch file to defragment all of the drives, one after the other.

    The disk defrag utility in Windows XP can be triggered from the command line with the following syntax:

    Windows Disk Defragmenter
    Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc.
    Usage:
    defrag <volume> [-a] [-f] [-v] [-?]
    volume drive letter or mount point (d: or d:volmountpoint)
    -a Analyze only
    -f Force defragmentation even if free space is low
    -v Verbose output
    -? Display this help text
    First, we'll create a file named defragall.bat, and place it anywhere you like, as long as you'll remember where it is. If you want to run it from the command line, you could place it in the \windows directory so that it will be available in the system path.

    For each hard drive, add a line to the batch file. For instance, if we want to defragment drives C: , D: , and F: we will add these three lines:

    defrag c: -f
    defrag d: -f
    defrag f: -f
    To run the defrag, just either double-click on the batch file or start it from the command line.

Similar Threads

  1. Replies: 3
    Last Post: 22-04-2012, 04:02 PM
  2. Replies: 3
    Last Post: 21-08-2011, 08:52 AM
  3. Cloning MAC OS X on Multiple Partitions
    By Maia in forum Operating Systems
    Replies: 4
    Last Post: 13-11-2010, 01:27 PM
  4. Replies: 6
    Last Post: 15-08-2010, 06:01 AM
  5. Is It Useful to Have Multiple Partitions?
    By Aagman in forum Operating Systems
    Replies: 3
    Last Post: 04-04-2009, 08:15 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,174,101.02262 seconds with 16 queries