iNfAmOuSeNiGmA
MIS
im new to script writing, i have to copy a file that is on a network share to the desktop when a user logs on. I tried writing it as a cmd file but it works in some of my locations and not all???? so i want to try a logon script vbs. having trouble with following script. I also need it to beable replace the current file with an updated file on the server with the same name.
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile = "file on network share","c:\Documents and Settings\%username%\Desktop",OverwriteExisting
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile = "file on network share","c:\Documents and Settings\%username%\Desktop",OverwriteExisting