> We have a mix of Windows 2000 and Windows XP PCs running. Of course, the
> system directory for Windows 2000 is C:\winnt and for XP is C:\windows.
> I need to copy a file to all the PCs' windows directory.
> Here is my vbscript:
> Const OverwriteExisting = TRUE
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> objFSO.CopyFile "\\server1\softwares\mydesk.bmp" , "%windir%\mydesk.bmp",
> But when I run it, the error is "path not found" & code is 800A004C.
> The thing is when I type %windir% on the run command it goes to the windows
> directory. Also, on the command prompt, when I type set, I see
> Any ideas?