Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Defrag Multiple Hard Drives At Once In Windows Nhiều Defrag Hard Drives Tại Khi Trong Windows

The Disk Defragment utility in Windows XP does not include a way to defragment all hard drives at the same time, which is inconvienient when you have more than one hard drive in your computer. Các tiện ích Disk Defragment trong Windows XP không bao gồm một cách để chống phân mảnh ổ đĩa cứng tất cả cùng một lúc, mà là inconvienient khi bạn có nhiều hơn một ổ đĩa cứng trong máy tính của bạn.

The method we are going to use is by creating a batch file to defragment all of the drives, one after the other. Phương pháp chúng ta sẽ sử dụng được bằng cách tạo ra một lô file để chống phân mảnh tất cả các ổ đĩa, một khi khác.

The disk defrag utility in Windows XP can be triggered from the command line with the following syntax: Đĩa phân mảnh tiện ích trong Windows XP có thể được kích hoạt từ dòng lệnh với cú pháp sau:

 Windows Disk Defragmenter Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc. Bản quyền (c) 2001 Microsoft Corp và chấp hành Software International, Inc
Usage: Cách sử dụng:
defrag < volume > [-a] [-f] [-v] [-?] defrag <khối lượng> [-a] [-f] [-v] [-?]
  volume  drive letter or mount point (d: or d:\vol\mountpoint) khối lượng ổ ký tự hoặc điểm lắp (d: hay d: \ vol \ mountpoint)
  -a      Analyze only -một Phân tích chỉ
  -f      Force defragmentation even if free space is low -f quân phân mảnh ngay cả khi không gian trống thấp
  -v      Verbose output -v verbose output
  -? -? Display this help text Hiển thị này giúp văn bản 

First, we'll create a file named defragall.bat, and place it anywhere you like, as long as you'll remember where it is. Trước tiên, chúng tôi sẽ tạo một tập tin defragall.bat đặt tên, và đặt nó ở bất cứ đâu bạn thích, miễn là bạn sẽ nhớ nơi nó. 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. Nếu bạn muốn chạy nó từ dòng lệnh, bạn có thể đặt nó trong cửa sổ thư mục \ để nó sẽ có sẵn trong đường dẫn hệ thống.

For each hard drive, add a line to the batch file. Đối với mỗi ổ đĩa cứng, thêm một dòng vào tập tin thực thi. For instance, if we want to defragment drives C: , D: , and F: we will add these three lines: Ví dụ, nếu chúng ta muốn chống phân mảnh ổ đĩa C:, D:, và F: chúng tôi sẽ thêm những ba dòng:

defrag c: -f defrag c:-f
defrag d: -f defrag d:-f
defrag f: -f defrag e:-f

To run the defrag, just either double-click on the batch file or start it from the command line. Để chạy các phân mảnh, hoặc chỉ cần nhấp đúp vào tập tin batch hoặc bắt đầu từ dòng lệnh.

This article was originally written on 11/22/06 Tagged with: Bài viết này ban đầu được viết ngày 11/22/06 Tagged với: Customizing: Tips & Tweaks Tùy biến: Tips & Tweaks , , Windows Windows

Daily Email Updates Email cập nhật hàng ngày

You can get our how-to articles in your inbox each day for free. Bạn có thể làm thế nào chúng tôi vào các bài viết trong hộp thư của bạn mỗi ngày miễn phí. Just enter your name and email below: Chỉ cần nhập tên và email của bạn dưới đây:


Name: Tên:
Email: Email:

Comments (13) Bình luận (13)

  1. jkugler jkugler

    I have already done this but was wondering if there is a way to not show the command line box when the batch is exicuted or atleast start it minimized? Tôi đã làm điều này nhưng đã tự hỏi nếu có một cách để không hiển thị hộp dòng lệnh khi lô là exicuted hay atleast nó bắt đầu giảm thiểu? Any help would be a appreciated. Bất kỳ trợ giúp sẽ là một đánh giá cao. Tthank You in advance. Tthank Bạn trước.

  2. visitor khách truy cập

    @echo off @ echo off

  3. Dean Dean

    Thanks. Cảm ơn. This is truly an eye opener…. Điều này thật sự là một opener mắt ....

  4. Tie 1 On Tie 1 ngày

    I have made the Defrag batch file, but i'm not sure if it's working properly. Tôi đã thực hiện các tập tin thực thi Defrag, nhưng tôi không chắc chắn nếu nó hoạt động đúng. Is there any way of seeing the progress of the defrag? Có cách nào nhìn thấy những sự tiến bộ của phân mảnh hay không?

  5. Rajagopalan R Rajagopalan R

    Hai, Hải,

    Earlier, I was having the problem to see the hidden folders, though I checked the radio button “Show all hidden folder & files” option. Trước đó, tôi đã có vấn đề để xem thư mục ẩn, mặc dù tôi đã kiểm tra vào nút "Hiển thị tất cả các thư mục và tập tin ẩn" tùy chọn. But after installing revmon killer, I got relief. Nhưng sau khi cài đặt kẻ giết revmon, tôi nhận cứu trợ. Now I am facing a new problem that always a cursor of sand glass is sticking with the cursor arrow (point). Bây giờ tôi phải đối mặt với một vấn đề mới mà luôn luôn là một con trỏ chuột của kính cát là gắn bó với mũi tên con trỏ (point). How could I clear ? Làm thế nào tôi có thể rõ ràng? Also when I click the hard drive, I could open them instead a pop up window open with the heading of “script…” When I right click on the drive, I found “Auto play” command as the first command in the pane. Ngoài ra khi tôi nhấp vào ổ đĩa cứng, tôi có thể mở chúng thay vì một cửa sổ pop up cửa sổ mở ra với nhóm của "kịch bản ..." Khi tôi kích chuột phải vào ổ đĩa, tôi thấy "chơi tự động" lệnh như lệnh đầu tiên trong cửa sổ này. How could I clear this problem. Làm thế nào tôi có thể rõ ràng vấn đề này. My pc becomes very slow. Pc của tôi trở nên rất chậm. Please help to solve my problems Xin vui lòng giúp đỡ để giải quyết vấn đề của tôi

  6. Leandro Leandro

    Create this archive .vbs!!! Tạo kho lưu trữ này vbs!.!! And create job in Scheduled Task!!! Và tạo việc làm trong Scheduled Task!

    '——————————————————————————– '---------------------------

    Set WshShell = WScript.CreateObject(”WScript.Shell”) Set WshShell = WScript.CreateObject ( "WScript.Shell")

    Dim fso, d, dc Dim fso, d, dc
    Set fso = CreateObject(”Scripting.FileSystemObject”) Set fso = CreateObject ( "Scripting.FileSystemObject")
    Set dc = fso.Drives Set dc = fso.Drives
    For Each d in dc Đối với mỗi d trong dc
    If d.DriveType = 2 Then Nếu d.DriveType = 2 Sau đó,
    Return = WshShell.Run(”defrag ” & d & ” -f”, 1, TRUE) Trở lại = WshShell.Run ( "phân mảnh" & d & "-f", 1, TRUE)
    End If Cuối Nếu
    Next Tiếp theo

    Set WshShell = Nothing Set WshShell = Nothing
    '——————————————————————————- '---------------------------

  7. Al Biheiri Al Biheiri

    @Tie 1 On — add -v @ Tie 1 ngày - add-v

    “I have made the Defrag batch file, but i'm not sure if it's working properly. "Tôi đã thực hiện các tập tin thực thi Defrag, nhưng tôi không chắc chắn nếu nó hoạt động đúng. Is there any way of seeing the progress of the defrag?” Có cách nào nhìn thấy những sự tiến bộ của phân mảnh hay không? "

  8. Phil Phil

    defrag c: -f defrag c:-f
    defrag d: -f defrag d:-f
    defrag f: -f defrag e:-f

    does not work in a batch file không làm việc trong đợt một tập tin

  9. Philip G Martin Philip G Martin

    Correction. Correction. Does not work if you name your batch file “defrag.bat” Không hoạt động nếu bạn tên tập tin thực thi của bạn "defrag.bat"

  10. francis mendoza Francis mendoza

    try this thử này

    @echo off @ echo off
    c:\WINDOWS\system32\defrag c: /f C: \ WINDOWS \ system32 \ defrag c: / f
    c:\WINDOWS\system32\defrag d: /f C: \ WINDOWS \ system32 \ defrag d: / f
    c:\WINDOWS\system32\defrag e: /f C: \ WINDOWS \ system32 \ defrag e: / f
    pause tạm dừng

  11. francis mendoza Francis mendoza

    open notepad then type mở notepad sau đó gõ

    @echo off @ echo off
    c:\WINDOWS\system32\defrag c: /f C: \ WINDOWS \ system32 \ defrag c: / f
    c:\WINDOWS\system32\defrag d: /f C: \ WINDOWS \ system32 \ defrag d: / f
    c:\WINDOWS\system32\defrag e: /f C: \ WINDOWS \ system32 \ defrag e: / f
    pause tạm dừng

    then save the file in filename.bat extension sau đó lưu các tập tin trong phần mở rộng filename.bat
    then double click the file then you have sau đó nhấp đúp chuột vào file sau đó bạn có
    your automatic defrag for all drive của bạn defrag tự động cho tất cả các ổ đĩa

    hope this will help you guys hy vọng điều này sẽ giúp bạn guys

  12. Robert Ryken Robert Ryken

    How do I open a notpad e-mail Làm thế nào để mở một e-mail notpad

  13. shinchan shinchan

    defrag c: defrag c:
    defrag d: defrag d:
    defrag e: defrag e:

    this didnt work for me, only the c drive was defragmented and the remaining drives were skipped i dont know why , can anybody tell me ? công tác này didnt cho tôi, chỉ có ổ c là Defrag và các ổ đĩa còn lại được bỏ qua i dont biết tại sao, ai cũng có thể cho tôi biết?


Our Friends Bạn bè của chúng tôi
Getting Started Bắt đầu


About How-To Geek Giới How-To Geek
What Is That Process? Quá trình đó là gì?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Bản quyền © 2006-2009 HowToGeek.com. All Rights Reserved. Tất cả các quyền.