I'm almost there with this. I've got stuck on one final part though. How do I convert my drupal path ('files/filename.file') to a system path ('C:\drupal\files\filename.file'). I've tried file_create_path() and that doesn't seem to work. It returns a drupal path. Thanks Adam