Your code looks fine, so it might be really because of missing permissions in Vista/Windows 7 (I still don't know how to turn this off, it even denies acces when I try to acess it as an administrator

). But the strange thing is: If your script is in C:\programm files (or program files(x86) or whatever), how have you been able to create your script there in the first place?