I wrote a VBScript recently that is basically doing a copy from a network (Windows 2003 domain) share to the users desktop. Here is the code FWIW:
objFSO.CopyFile “\server\share$\desktop*.lnk” , DesktopPath , OverwriteExisting
For some reason I’m getting a VBScript error of path not found. However, when I go to the command line and type in \server\share$\desktop it works fine. It’s like the path isn’t there when the script runs but once the script finishes the path is there fine. I’ve put in an error check to get rid of the error message, but it doesn’t really solve the problem. It seems random…sometimes it works fine, other times it doesn’t work after 2 or even 3 login attempts.
If anyone has any advice or idea of what’s happening here I would very much appreciate it. I’m no VB guru myself, nor am I an expert with Windows 2003 Server (my MCSE was NT 4 Server/WS ). I’ve used this script before at other sites though and haven’t run into this issue.
-XT