Subscribe to How-To Geek Mag-subscribe sa Paano-Upang Geek

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 Defrag Maramihang Hard Drive Sa sandaling Sa 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. Ang Disk utility Defragment sa Windows XP ay hindi kasama ang isang paraan upang defragment lahat ng hard drive at sa parehong oras, na kung saan ay inconvienient kapag ikaw ay may higit sa isang hard drive sa inyong computer.

The method we are going to use is by creating a batch file to defragment all of the drives, one after the other. Ang paraan namin ay pagpunta sa gumamit ay sa pamamagitan ng paglikha ng isang batch file na defragment ang lahat ng mga nag-mamaneho, ang isa pagkatapos ng isa.

The disk defrag utility in Windows XP can be triggered from the command line with the following syntax: Ang disk defrag utility sa Windows XP ay maaaring nag-trigger mula sa command na linya sa mga sumusunod na syntax:

 Windows Disk Defragmenter Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc. Copyright (c) 2001 Microsoft Corp at Executive Software International, Inc
Usage: Paggamit ng:
defrag < volume > [-a] [-f] [-v] [-?] defrag <dami> [a] [-f] [-v] [-?]
  volume  drive letter or mount point (d: or d:\vol\mountpoint) lakas ng tunog drive ng sulat o bundok point (d: o d: \ Vol \ mountpoint)
  -a      Analyze only -isang Analyze lamang
  -f      Force defragmentation even if free space is low -f Force defragmentation kahit free space ay mababa
  -v      Verbose output -v output masyadong masalita
  -? -? Display this help text Ipakita ang mga ito ng tulong 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. Una, kami ay lumikha ng isang file na pinangalanang defragall.bat, at lugar na ito kahit saan nais mo, hangga't makikita mo matandaan kung saan ito. 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. Kung iyong nais na patakbuhin ito mula sa linya ng utos, maaari mong ilagay ito sa \ direktoryo ng windows para ito ay makukuha sa ang landas na sistema.

For each hard drive, add a line to the batch file. Para sa bawat hard drive, magdagdag ng isang linya sa file na batch. For instance, if we want to defragment drives C: , D: , and F: we will add these three lines: Halimbawa, kung gusto naming itaboy defragment C:, D:, at F: kami ay idagdag ang mga tatlong linya:

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

To run the defrag, just either double-click on the batch file or start it from the command line. Upang patakbuhin ang defrag, makatarungan sa alinman i-double click sa batch file o magsimulat ito mula sa linya ng command.

This article was originally written on 11/22/06 Tagged with: Ang artikulong ito ay orihinal na isinulat sa 11/22/06 Tagged with: Customizing: Tips & Tweaks Pagpapasadya: Tips at Tweaks , , Windows Windows

Daily Email Updates Araw-araw na Updates Email

You can get our how-to articles in your inbox each day for free. Maaari kang makakuha ng aming kung-paano na mga artikulo sa iyong inbox sa bawat araw para sa libre. Just enter your name and email below: Ilagay lamang ang inyong pangalan at email sa ibaba:


Name: Pangalan:
Email: Email:

Comments (13) Comments (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? Na ako tapos na ngunit ito ay nagtataka kung may isang paraan upang hindi ipakita ang mga command na linya ng kahon kapag batch ay exicuted o atleast simulan ito mababawasan? Any help would be a appreciated. Anumang tulong magiging isang appreciated. Tthank You in advance. Tthank ka in advance.

  2. visitor bisita

    @echo off @ echo off

  3. Dean Dean

    Thanks. Salamat. This is truly an eye opener…. Ito ay tunay na isang nakakapagunawa ....

  4. Tie 1 On Itali 1 Sa

    I have made the Defrag batch file, but i'm not sure if it's working properly. Ako may ginawa ang file Defrag batch, ngunit hindi ako sigurado kung ito ay gumagana ng maayos. Is there any way of seeing the progress of the defrag? Mayroon bang anumang paraan ng nakikita ang mga pag-unlad ng defrag?

  5. Rajagopalan R Rajagopalan R

    Hai, Hai,

    Earlier, I was having the problem to see the hidden folders, though I checked the radio button “Show all hidden folder & files” option. Mas maaga, ako ay nagkakaroon ng problema upang makita ang hidden ng mga folder, kahit na-tsek ang radio button na "Ipakita ang lahat ng hidden folder & file" na opsyon. But after installing revmon killer, I got relief. Ngunit pagkatapos ng pag-install ng revmon mamamatay, ako got kaluwagan. Now I am facing a new problem that always a cursor of sand glass is sticking with the cursor arrow (point). Ngayon ako ay nakaharap sa isang bagong problema na palaging isang cursor ng buhangin na salamin ay malagkit na may cursor arrow (point). How could I clear ? Paano ko maaaring i-clear? 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. Gayundin kapag ako ay i-click ang hard drive, maaari ko bang buksan ang mga ito sa halip ng isang pop up window bukas sa heading ng "script ..." Kailan ko karapatang mag-click sa drive, natagpuan ko ang "Auto play" command bilang unang utos sa salamin ng bintana. How could I clear this problem. Paano ko maaaring i-clear ang problemang ito. My pc becomes very slow. Aking pc ay nagiging masyadong mabagal. Please help to solve my problems Paki-tulong upang malutas ang aking mga problema

  6. Leandro Leandro

    Create this archive .vbs!!! Gumawa ng ito archive. Vbs! And create job in Scheduled Task!!! At gumawa ng trabaho sa scheduled na Gawain!

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

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

    Dim fso, d, dc Madilim fso, d, dc
    Set fso = CreateObject(”Scripting.FileSystemObject”) Set fso = CreateObject ( "Scripting.FileSystemObject")
    Set dc = fso.Drives Itakda ang dc = fso.Drives
    For Each d in dc Para sa bawat d sa dc
    If d.DriveType = 2 Then Kung d.DriveType = 2 Pagkatapos
    Return = WshShell.Run(”defrag ” & d & ” -f”, 1, TRUE) Bumalik = WshShell.Run ( "defrag" & d & "-f", 1, TRUE)
    End If Dulo Kung
    Next Susunod

    Set WshShell = Nothing Itakda ang WshShell = Wala
    '——————————————————————————- '---------------------------

  7. Al Biheiri Al Biheiri

    @Tie 1 On — add -v @ Talian 1 On - add-v

    “I have made the Defrag batch file, but i'm not sure if it's working properly. "Ako ay may ginawa ang file Defrag batch, ngunit hindi ako sigurado kung ito ay gumagana ng maayos. Is there any way of seeing the progress of the defrag?” Mayroon bang anumang paraan ng nakikita ang mga pag-unlad ng defrag? "

  8. Phil Phil

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

    does not work in a batch file ay hindi gumagana sa isang batch ng file

  9. Philip G Martin Philip G Martin

    Correction. Pagtutuwid. Does not work if you name your batch file “defrag.bat” Ay hindi gumagana kapag ang pangalan ng iyong batch file "defrag.bat"

  10. francis mendoza Francis Mendoza

    try this subukan ito

    @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 i-pause

  11. francis mendoza Francis Mendoza

    open notepad then type buksan ang Notepad pagkatapos i-type

    @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 i-pause

    then save the file in filename.bat extension pagkatapos i-save ang file sa filename.bat extension
    then double click the file then you have pagkatapos ay i-double click ang file at pagkatapos ikaw ay may
    your automatic defrag for all drive ang iyong mga awtomatikong defrag para sa lahat ng drive

    hope this will help you guys pag-asa na ito ay makakatulong sa inyo guys

  12. Robert Ryken Robert Ryken

    How do I open a notpad e-mail Paano ko buksan ang isang notpad e-mail

  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 ? ito didn't trabaho para sa akin, tanging ang drive c ay defragmented at ang natitirang drive ay Nilaktawan ako dont malaman kung bakit, maaari kahit sino sabihin sa akin?


Our Friends Ang aming mga Friends
Getting Started Pagsisimula


About How-To Geek Tungkol sa Paano-Upang Geek
What Is That Process? Ano ba ang Proseso Iyon?
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. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.