trevstonbury
IS-IT--Management
Hi Guys.
This is probably a fairly simple one for but I am quite a novice with scripts.
Bascialy I want a script to be able to copy a directory in a share from a server to all user desktops when they login, so far I have the following;
If possible can it be set so that it only copies the directory if it see's is does not exist? Any help would be much appreciated
Const OverWriteFiles = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFolder "file://server/share/foldertocopy" , "%userprofile%\desktop" , OverWriteFiles
This is probably a fairly simple one for but I am quite a novice with scripts.
Bascialy I want a script to be able to copy a directory in a share from a server to all user desktops when they login, so far I have the following;
If possible can it be set so that it only copies the directory if it see's is does not exist? Any help would be much appreciated

Const OverWriteFiles = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFolder "file://server/share/foldertocopy" , "%userprofile%\desktop" , OverWriteFiles