Jump to content

Creat a defrag task in windows xp


Recommended Posts

Posted

Hi all:

I've created a task to be running once per week to defrage my boot partetion,

there are two issues I'd like to ask about:

1- does windows default defrage application is good enough to be used or I should use another one like disk keeper or 0&0 defrage?

2- I've created the following task to be run as I've mentioned above:

C:\WINDOWS\system32\dfrg.msc

it did started right but it did not start the defragementation process, how to le it start the defrage automatically?

Thanks


Posted
1- does windows default defrage application is good enough to be used or I should use another one like disk keeper or 0&0 defrage?

Long short story : Yes for any "normal" home user

Diskeeper is not really much efficient, only faster (way faster)

O&O is designed for maniacs of the "i don't want ANY free cluster between my files. Line up in order ! One Two ! One Two !"

PerfectDisk features the most colorful interface and acheive similar results than Diskeeper.

Obviously, "professionals" (like people running a huge database, or a file server, or ...) will see benefits of switching to one of those paid apps.

++

Posted
Yes for any "normal" home user
Yes... I'm a normal home user but want efficient tool, so I'm only interested in result more then any thing else. Also my HD is SATA 160GB, and my PC is runing most of the time :P
Use defrag.exe from a batch
How to do it?

Thanks

Posted
Yes... I'm a normal home user but want efficient tool, so I'm only interested in result more then any thing else. Also my HD is SATA 160GB, and my PC is runing most of the time :P

Ever heard of the simpsons ?

I will not start trolling about the best defragger.
I will not start trolling about the best defragger.
I will not start trolling about the best defragger.
I will not start trolling about the best defragger.
I will not start trolling about the best defragger.
I will not start trolling about the best defragger.
I will not start trolling about the best defragger.
I will not start trolling about the best defragger.
I will not start trolling about the best defragger.
I will not start trolling about the best defragger.

:lol:

Seriously, since you're normal, you sometimes need to sleep, so you don't *really* need to have a "super-stealth-and-transparent" background defragmenter.

just put :

defrag.exe c: -f

in the batch

++

Posted (edited)

Windows default defrage is really enough for me, and I will try to minimize the number of installed applications on my pc as I could but I'm afraid to tell that I do not know how to creat a batch for such a thing, can you give me a hand with this issue?

thanks

Edited by mgadallah
Posted

The batch :

open notepad, type in the line i gave you, and save as "defrag.cmd" (type the quotes in the save as dialog to ensure it will not get .txt added).

Lastly point to this file where you pointed to dfrg.msc in the scheduled task.

Minimizing the number of installed applications has few impact on fragmentation., but installing/removing apps frequently is a bad idea.

++

Posted

It shows an analysis first then defrags. It will also show an analysis when it's done. If you notice your hard drive light should show it is quite busy between the two. Type that same command into a command prompt window and you'll see what it does.

Posted (edited)

Here is a VBS script that will defrag all the local Hard Drives.

Save As DefragDrives.vbs

Dim Act : Set Act = CreateObject("Wscript.Shell")
Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")
Dim Drv, StrD, GB : GB = 1073741824
Set Drv = Fso.Drives
For Each StrD In Drv
If StrD.DriveType = 2 Then
Act.Popup "Preparing to defrag this drive" & vbCrLf &_
"Drive" & Space(6) & Chr(62) & " " & StrD & "\" & vbCrLf &_
"Volume" & Space(2) & Chr(62) & " " & StrD.VolumeName & vbCrLf &_
"DiskSize " & Chr(62) & " " & Left(round(StrD.TotalSize/GB,4),5) & " GB" & vbCrLf &_
"DiskFree " & Chr(62) & " " & Left(round(StrD.FreeSpace/GB,4),5) & " GB",4,"Defrag", 0 + 32 + 4096
Act.Run("Defrag " & strD & "\ -F"),2,True
End If
Next

Edited by gunsmokingman

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...