Any reason you won't use the recommended "%USERPROFILE%" ??? Using @USERID to build a profile or user home path is unreliable. The point of @USERID is to identify the Account Name of the person logged in, and does not necessarily have anything to do with user paths.

My home path on Vista is "C:\Users\glenn.DOMAIN", since I also have a local profile of "C:\Users\Glenn". Clearly, if I ran your script in my environment, I'd be getting errors trying to update a folder that I did not have permissions to, even though it was "mine".

%USERPROFILE% will contain the correct value regardless of the O/S you are running, and will reflect the correct domain or local profile path.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D