ful56_uk Posted September 13, 2009 Posted September 13, 2009 Hi does anyone have a script that will check a local folder is there if so is it older then the one on the server is so replace the contains. I need to copy a folder to the root of c but only want to do it if there is a newer one on the server so it doens get copyied evertime a pc boots up. Thanks mark
EduTech Posted September 13, 2009 Posted September 13, 2009 this should help, The Windows command Xcopy and its uses Xcopy will do your trick and then just use a switch /D dont add a date as then it will only copy files/folder if the source on the server is newer then the existing folder on the c:\ James. 1
ful56_uk Posted September 13, 2009 Author Posted September 13, 2009 cool thanks, how do you run this in a startup script?
EduTech Posted September 13, 2009 Posted September 13, 2009 cool thanks, how do you run this in a startup script? xcopy /d "source - UNC" "Destination c:\" James.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now