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 Odmrzniti več trdi diski na enkrat v operacijskem sistemu 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. Korist Defragment Disk v operacijskem sistemu Windows XP ne vključuje način defragmentirati vse trde diske ob istem času, ki je inconvienient, če imate več kot en trdi disk v vašem računalniku.

The method we are going to use is by creating a batch file to defragment all of the drives, one after the other. Metoda se bomo uporabljati, je z ustvarjanjem batch pila defragmentirati vse pogone, enega za drugim.

The disk defrag utility in Windows XP can be triggered from the command line with the following syntax: Disk defrag korist v operacijskem sistemu Windows XP je mogoče sprožiti iz ukazne vrstice z naslednjo sintakso:

 Windows Disk Defragmenter Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc. Copyright (c) 2001 Microsoft Corp in Executive Software International, Inc
Usage: Uporaba:
defrag < volume > [-a] [-f] [-v] [-?] odmrzniti <volumen> [-a] [-f] [-v] [-?]
  volume  drive letter or mount point (d: or d:\vol\mountpoint) Obseg črko pogona ali mount point (d: ali d: \ vol \ mountpoint)
  -a      Analyze only Analizirajte le -
  -f      Force defragmentation even if free space is low f-Force defragmentation čeprav prostora je nizka
  -v      Verbose output -v verbose output
  -? -? Display this help text Prikaži to pomaga besedilo 

First, we'll create a file named defragall.bat, and place it anywhere you like, as long as you'll remember where it is. Najprej bomo ustvarili datoteko z imenom defragall.bat, in jo postavite kjerkoli želite, dokler boste spomnite, kje je. 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. Če želite, da bi sistem deloval iz ukazne vrstice, lahko jo postavite v imeniku \ okna, tako da bo na voljo v sistemu poti.

For each hard drive, add a line to the batch file. Za vsak trdi disk, dodate vrstico za batch pila. For instance, if we want to defragment drives C: , D: , and F: we will add these three lines: Na primer, če želimo defragmentirati diskov C:, D: in F: bomo dodali te tri vrstice:

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

To run the defrag, just either double-click on the batch file or start it from the command line. Če želite zagnati odmrzniti, bodisi samo dvokliknite na paketno datoteko ali zaženete iz ukazne vrstice.

This article was originally written on 11/22/06 Tagged with: Ta članek je bil prvotno napisan na 11/22/06 Tagged with: Customizing: Tips & Tweaks Prilagajanje: Nasveti in Tweaks , , Windows Windows

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (13) Komentarji (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? Sem že to naredil, vendar je bil začuden, če obstaja način, da ne kažejo polje ukazne vrstice, ko je serija exicuted ali atleast začetek to čim manjša? Any help would be a appreciated. Vsaka pomoč bi bila dobrodošla. Tthank You in advance. Tthank si vnaprej.

  2. visitor obiskovalec

    @echo off @ echo off

  3. Dean Dean

    Thanks. Hvala. This is truly an eye opener…. To je resnično ... odpirač za oči.

  4. Tie 1 On Tie 1 On

    I have made the Defrag batch file, but i'm not sure if it's working properly. Naredil sem paketnih odmrzniti, vendar nisem prepričan, če je to delovalo pravilno. Is there any way of seeing the progress of the defrag? Ali obstaja način videnje napredka odmrzniti?

  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. Pred tem sem bil imetje naloga za prikaz skritih map, čeprav sem preveril na gumb "Pokaži vse skrite mape in datoteke" predkupna pravica. But after installing revmon killer, I got relief. Toda po namestitvi revmon morilec, imam olajšave. Now I am facing a new problem that always a cursor of sand glass is sticking with the cursor arrow (point). Sedaj sem pred novo težavo, ki vedno kazalec peska steklo je lepljenje s puščico kazalca (točka). How could I clear ? Kako sem lahko jasno? 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. Tudi ko sem kliknite trdi disk, lahko odprem jim namesto pop up okno odprto z naslovom "script ..." Ko sem desni klik na pogon, sem našel "Auto play" ukaz kot prvi ukaz v podoknu. How could I clear this problem. Kako bi lahko ta problem jasen. My pc becomes very slow. Moj pc postane zelo počasno. Please help to solve my problems Prosim pomoč pri reševanju moje težave

  6. Leandro Leandro

    Create this archive .vbs!!! Ustvari tega arhiva. Vbs! And create job in Scheduled Task!!! In ustvarjanje delovnih mest v 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 Za vsak d v dc
    If d.DriveType = 2 Then Če d.DriveType = 2 Potem
    Return = WshShell.Run(”defrag ” & d & ” -f”, 1, TRUE) Return = WshShell.Run ( "odmrzniti" & & d "-f", 1, TRUE)
    End If End If
    Next Naslednji

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

  7. Al Biheiri Al Biheiri

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

    “I have made the Defrag batch file, but i'm not sure if it's working properly. "Naredil sem paketnih odmrzniti, vendar nisem prepričan, če je to delovalo pravilno. Is there any way of seeing the progress of the defrag?” Ali obstaja način videnje napredka odmrzniti? "

  8. Phil Phil

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

    does not work in a batch file ne deluje v batch datoteki

  9. Philip G Martin Philip Martin G

    Correction. Popravek. Does not work if you name your batch file “defrag.bat” Ne deluje, če boste svoje ime batch file "defrag.bat"

  10. francis mendoza Francis Mendoza

    try this začeti to

    @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 \ odmrzniti d: / f
    c:\WINDOWS\system32\defrag e: /f c: \ WINDOWS \ system32 \ odmrzniti e: / f
    pause pavza

  11. francis mendoza Francis Mendoza

    open notepad then type odprta notepad vnesite

    @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 \ odmrzniti d: / f
    c:\WINDOWS\system32\defrag e: /f c: \ WINDOWS \ system32 \ odmrzniti e: / f
    pause pavza

    then save the file in filename.bat extension shranite v datoteko filename.bat podaljšanje
    then double click the file then you have Nato dvakrat kliknite datoteko potem imate
    your automatic defrag for all drive vaš avtomatski defrag za vse vožnjo

    hope this will help you guys upanje to vam bo pomagal fantje

  12. Robert Ryken Robert Ryken

    How do I open a notpad e-mail Kako odprem notpad e-mail

  13. shinchan Shinchan

    defrag c: defrag c:
    defrag d: odmrzniti d:
    defrag e: odmrzniti 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 ? to didnt opus navzlic, se je samo c pogon defragmented in preostalih pogonov so bile izpuščene jaz dont znanje zakaj, lahko kdo povedal?


Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
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.