Connecting Tech Pros Worldwide Help | Site Map

Login Script: VBS

Familiar Sight
 
Join Date: Nov 2006
Posts: 168
#1: Jul 29 '09
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:


Expand|Select|Wrap|Line Numbers
  1. Set WshShell = CreateObject("WScript.Shell")
  2.  
  3. 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
Reply