I usually have good luck with my login sripts, but I am having trouble with this one. As part of an upcoming software upgrade, I'm going to have to replace an existing config/inf file with a "new' one. No problem right? So I get some nifty code and start testing it out. Works fine if I run the .VBS file locally on a computer - doesn't work when I add the vbs file to a domain controller as part of a logon script. Here's the code - anybody got any suggestions as to why I'm having problems with this?
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objLocalFile = objFSO.GetFile("c:\temp\test.txt")
Set objServerFile = objFSO.GetFile("\\fas01.oca.xxxxxxxxx\install\test.txt")
objFSO.CopyFile objServerFile.Path, objLocalFile.Path, OverwriteExisting
thanks for any input, Adrian Roe