<$BlogRSDUrl$>

Wednesday, June 25, 2003

Automated nightly defrags on Windows XP... 

On my machine I have two partitions : C & D. The C partition has the OS, all Programs like Office, IDEA, Oracle, etc on it. The D drive just has data - mostly source code, project directories, personal files, etc.

I’ve noticed that when I’m doing development, the D drive gets fragmented very quickly (even in one days time). After a full day's coding, I usually manage to create 1000 or so fragmented files (even when the machine has been completely defragged the day before). This is after doing full rebuilds, re-installations of the appserver (we have an ant target to completely wipe out our Jboss directory and re-install it), pulls from CVS, etc..

Anyway – you can setup Windows built in defrag tool to run on a recurring basis. Here’s how :

Create a batch file (e.g. c:\bin\DefragLocalDrives.cmd) with the contents similar to the following (customize to your local drive structure):

   defrag /v /f c: > d:\temp\Defrag_C.txt

   defrag /v /f d: > d:\temp\Defrag_D.txt
Now create a scheduled task to run this batch file. Goto Start | Control Panel | Scheduled Tasks and click on “Add Scheduled Task” Point the new scheduled task at the batch file you created in step 1 and set up the recurrence to your preferred frequency.

I set mine up to run every morning at 4:30 AM. At first I thought this would be overkill, but I’ve noticed that when doing development I always have some fragmentation, even after only a day’s use.

That’s it…

UPDATE - As Lance Lavandowska kindly pointed out - this only works on XP (defrag.exe is not present on Win2k installations)


Monday, June 23, 2003

CruiseControl version 2.2.1 is out... 

Just noticed that a new version of Cruise Control has been released

http://sourceforge.net/project/shownotes.php?release_id=167306

We're using 2.0.2 on my current project and we love it. It takes a bit of maintenance and troubleshooting here and there (especially as the size of the project and number of tools grows), but it is definitely worth the investment to set your projects up in this.


Mozilla: Helpful Quick Reference Sidebars for Developers... 

Mozilla has some really cool "quick reference" sidebars for developers. For example :

You can get them from here : http://devedge.netscape.com/toolbox/sidebars

This page is powered by Blogger. Isn't yours?