Is there a built-in way to defragment a folder? I am using VM Player so I would like my 3 GB disk image to be defragmented if possible. FYI my disk partition that the image lies in has 12 GB left and has roughly 90% of the disk used. I probably would not need a defrag but I would like to do it if it's possible.
I haven't found a way to do this with native commands but there are additional programs out there that allow you to selectively defrag individual files.
I've used programs like defraggler from the guys who brought you CCleaner.
Or a contig - http://technet.microsoft.com/en-us/sysinternals/bb897428.aspx Part of the Sysinternals Suite by Mark Russinovich.
It sounds like you have your OS and then your VM with it's OS image... instead of trying to defrag from your root/normal OS, why not try to do a defrag inside of your VM OS image - that is, run your VM and have it do a defrag.
Does that work for you?