Ok thanks, I'll give that a shot later today.
*****************
Edit:
Ok, it's now later your little script as you say works a treat, so no more watching paint dry like yesterday when it took a few hours to defrag, but like I say it's the large files such as videos that cause the main time problem.
One of the main things I used to like with Norton System tools defrag was because it also had the option to select different types of files (by their extensions) and move them to the end of the disc, obviously then certain type of files probably did not get used very often so did not need defragging very often either.