Login Script: VBS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Beany
    New Member
    • Nov 2006
    • 173

    Login Script: VBS

    Hi,

    not sure if this is the right section to post in but i'm using the following vbs script to add files to network machines through a group policy:


    Code:
    Set WshShell = CreateObject("WScript.Shell")
    
    WshShell.Run "xcopy.exe ""\\FileLocationGOESHERE"" ""C:\LOCATION"" /C /I /S /E /H /Y /Q", 1,True
    I need to make sure that if the file already exists then this script will do nothing, what can i add to this code that will achieve this?

    many thanks
Working...