Your technology certification is waiting. Enroll in Cloud Class ®
Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
IF EXIST("C:\Program Files\Program\Flagfile.flg")
COPY "\\sourceserver\sourceshare\*.*" "C:\Program Files\Program\*.*" /Y
Open in new window
flagFile = "c:\program files\someprogram\somefile.txt"
If flagFile.FileExists("c:\program files\someprogram\somefile.txt") Then
'Do Nothing because it's done
Set WshShell = WScript.CreateObject("WScript.Shell")
'nb the trailing \ avoids the prompt asking whether target is file or directory
wshshell.run ("xcopy sourcefolder targetfolder\ /T /E")
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
This course teaches how to install and configure Windows Server 2012 R2. It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).