What version of BF2 do you own?
I suggest downloading mydefrag.com then downloading the specific Steam and Desura defragmentation script, and learning how to edit it if needed:
Download and install
[Script] Games Optimization Script for Data Disk (Steam and Desura included)
