Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Windows

Reply
 
LinkBack Thread Tools
Old 04-09-07   #1 (permalink)
PURE action!
 
Krunk_Kracker's Avatar
 
intel nvidia

Join Date: May 2005
Location: 127.0.0.1
Posts: 10,774
Blog Entries: 5

FAQs Submitted: 4
Folding Team Rank: 122
Trader Rating: 21
Default Setting XP to auto defrag

Hey guys, I did a search on the forum and noticed that there arent any FAQ's or threads on doing this, so I thought I'd do a small how-to. It's very easy, and helps makes your PC maintenance easier

Anyways......first off you want to pull up the command console by going to run->cmd



Then, your gonna want to know what what commands can be used in your batch file (oh yeah, I guess I forgot to say were going to be writing a simple batch file for this, lol) by typing "defrag /?". Below is what it will show...



So, the context is thus

defrag [drive letter]: [space] [commands]

-v gives you a visual of what will be performed, no reason really not to use this command, it gived the percentage of fragmented files, and ect ect.

-a will obviously just tell you what condition the files on your drive is in, but not defrag the drive/drives.

-f well, shouldn't really be used, but it will force the defrag if you dont have more than....15% free space I think it is.

Anywho...now to the batch file.

Open up notepad (start->all programs->accessories->notepad, for teh noobs ).

I have a RAID0 array using 2 WD80 gig drives and a 120gig backup, so in order for me to auto defrag both drives, I'll need to do the format in the notepad like so:
Quote:
defrag e: -v
defrag c: -v
pause
e: is my boot drive and c: is my backup drive....I dunno really how that happened, lol. Anyways, if you only have one drive, you only need one defrag command, if you have 8 drives, do it 8 times with the corresponding drive letter.

"pause" is important because the command line will auto shut off if it's not in place, and I like to see the console when it's done defraging so I know it's complete.

Now, you need to save it as a .bat, and NOT as a .txt. Do this by choosing a place to save it first, I made a new folder in "My Documents" called "Scheduled", but you can do as you wish. Anyways, choose to save it as "All Files" and make the file name [anything].bat, but DO NOT use "defrag" as it will conflict with the defrag.exe and endlessly loop and not do anything at all. I use defrag1.bat



Alright, so noting where you saved the file, on to actually scheduling this beasty.

Open up the Scheduled Task menu by following my screeny, if you do not know how, then click the "Add New Task" option.




Now, once you click on the "add new task" option, press "next" (who the hell reads stuff like that ) where it will now bring up a list of program files to schedule. Click "Browse", and find the batch file we made earlier.

After you find it and click OK, choose how you want it to run (daily, weekly, monthly, ect). I use weekly myself, if you care to know. I run it every week at 3:00am on Sunday night.

Click next after you set the dates/times. If your an administrator of this pc your on, enter the password, if not, you need the admin pass, or you can add to it. Enter it, and then click finish. KEEP READING IF YOU DO NOT USE A PASSWORD.

If you do not have a password for your pc at all, BEFORE you click "Finish" be sure to check the box "Open advanced properties for this task when I click finish". Click finish.

After you click finish, it will bring up the properties box, click set passowrd.

Make a password, confirm it, and viola! Scheduled defrag for teh XPzorz



Hope I help you dudes out, I was sitting here, bored outta my freaking mind on a Sunday evening, and decided to contribute a bit to teh Overclock.net

System: Pure Pwnage
CPU
e6400@3.2GHz
Motherboard
ASUS P5B Deluxe
Memory
1gx4 SuperTalent T800UX2GC4 (DDR2-800/3-3-3-4)
Graphics Card
eVGA 8800GTS 320mb
Hard Drive
WD80x2(RAID0)+SeaGate 120
Sound Card
Barracuda AC-1
Power Supply
OCZ GameXstream 850w
Case
XASER III
CPU cooling
Scythe Infinity
GPU cooling
stockage
OS
Vista Ultimate x64
Monitor
Samsung 19"
Krunk_Kracker is online now I fold for Overclock.net Overclocked Account Krunk_Kracker's Gallery   Reply With Quote
Old 04-09-07   #2 (permalink)
PURE action!
 
Krunk_Kracker's Avatar
 
intel nvidia

Join Date: May 2005
Location: 127.0.0.1
Posts: 10,774
Blog Entries: 5

FAQs Submitted: 4
Folding Team Rank: 122
Trader Rating: 21
Default

No one?

System: Pure Pwnage
CPU
e6400@3.2GHz
Motherboard
ASUS P5B Deluxe
Memory
1gx4 SuperTalent T800UX2GC4 (DDR2-800/3-3-3-4)
Graphics Card
eVGA 8800GTS 320mb
Hard Drive
WD80x2(RAID0)+SeaGate 120
Sound Card
Barracuda AC-1
Power Supply
OCZ GameXstream 850w
Case
XASER III
CPU cooling
Scythe Infinity
GPU cooling
stockage
OS
Vista Ultimate x64
Monitor
Samsung 19"
Krunk_Kracker is online now I fold for Overclock.net Overclocked Account Krunk_Kracker's Gallery   Reply With Quote
Old 04-09-07   #3 (permalink)
a.k.a. TutenStain
 
i_ame_killer_2's Avatar
 
intel nvidia

Join Date: Jun 2006
Location: Sweden, Mullsjö
Posts: 4,427

Rep: 552 i_ame_killer_2 is becoming famousi_ame_killer_2 is becoming famousi_ame_killer_2 is becoming famousi_ame_killer_2 is becoming famousi_ame_killer_2 is becoming famousi_ame_killer_2 is becoming famous
Unique Rep: 321
Trader Rating: 0
Default

Quote:
Originally Posted by Krunk_Kracker View Post
No one?
Nice!
__________________
Please ignor my spelling and grammar!
FAQ:s


I reject your reality and substitute my own. -Adam Savage

System: The Kandalf
CPU
Q6600 [G0] 3.0Ghz @ 1.2875
Motherboard
Abit IP35 Pro
Memory
Crucial BallistiX PC 6400 2GB
Graphics Card
XFX G92 8800 GTS 512Mb
Hard Drive
Western Digital Caviar SE16 500GB
Sound Card
ALC 888
Power Supply
Cooler Master Extream Power Duo 650 W
Case
Thermaltake Kandalf
CPU cooling
Tuniq Tower 120
GPU cooling
Stock DualSlot cooler
OS
Windows Vista Ultimate 64 Bit
Monitor
22" Samsung Syncmaster 226CW
i_ame_killer_2 is online now Overclocked Account i_ame_killer_2's Gallery   Reply With Quote
Old 04-11-07   #4 (permalink)
Ooooohh
 
lightsource's Avatar
 
intel nvidia

Join Date: Nov 2004
Location: California
Posts: 4,894

Rep: 435 lightsource is a proven memberlightsource is a proven memberlightsource is a proven memberlightsource is a proven memberlightsource is a proven member
Unique Rep: 265
FAQs Submitted: 7
Folding Team Rank: 486
Hardware Reviews: 3
Trader Rating: 3
Default

Great FAQ
__________________
[INTEL C2D E6550 | DFI Blood Iron P35-T2RL | Super Talent 4x1GB DDR2-800 | Dell E228WFP 22" LCD | eVGA Superclocked 256MB 9600GT]
[OCZ PowerStream 520W | X-Fi Fatal1ty FPS | Thermalright Ultra-120 eXtreme @ 96CFM | Antec P182 | 3x Seagate 320GB (PWT)]

[Upgrades: ~650W PSU]
Quote:
Originally Posted by Zeromark View Post
hmm still cant find it, mabey its cause ive got hacked version? Who knows
Quote:
Originally Posted by legoman786 View Post
Wow... what a way to go bye-bye
INTERPOL!!!

System: Project Omega
CPU
Intel Core 2 Duo E6550
Motherboard
DFI BLOOD IRON P35-T2RL
Memory
Super Talent 2GB (2x1) T800UX2GC4
Graphics Card
eVGA 9600GT Superclocked
Hard Drive
3x Seagate 320GB (PWT)
Sound Card
X-Fi Fatal1ty FPS
Power Supply
OCZ PowerStream 520W
Case
Antec P182
CPU cooling
Thermalright Ultra-120 eXtreme
GPU cooling
Stock
OS
Windows XP Professional
Monitor
Dell E228WFP 22" LCD
lightsource is offline I fold for Overclock.net Overclocked Account lightsource's Gallery   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 11:33 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.25160 seconds with 8 queries