I have completed the script and as promised have included a link to it below. I am working on getting it to read an config file and allow it to be customised so it can be used to store the database files elsewhere. I would appreciate any comments and am interested in doing things more efficiently in future scripts of this kind. Thanks again for your help.

iToggle II Script
_________________________
Dr Rick
Computer Specialist