Hi all, I have made the change you all recommended and it all works nicely under WXP however Win7 still fails. However I did remove all select-case-case1-endselect around os checks etc and left the mapdrives section and the script executes fine.
So it does show that you are all correct when you say it is an OS check failure. I honestly do not know how to resolve this and wpuld like to continue to do an OS check so your suggestions and help would be most welcome

steve