Sync directory Timestamps in Windows

qwertyiopqwertyiop Member Posts: 725 ■■■□□□□□□□
Is there a way to sync the timestamps of directory's of Server1 to Server 2?

Server1 has all of the original files and I need the timestamps on Server2 to be the same as in Server1.

Can anybody think of a script of program that can do this?

Comments

  • MentholMooseMentholMoose Senior Member Member Posts: 1,524 ■■■■■■■■□□
    Robocopy will do it.
    MentholMoose
    LFCE - MCITP: EDA7, VA, SA, EA - MCSA:S 2003 - CCA (PVS 5, XD 3 / 4 / 5, XS 5 / 6) - VCP 4 / 5
  • qwertyiopqwertyiop Member Posts: 725 ■■■□□□□□□□
    Robocopy will do it.

    I wish it was that simple I have used the script below and havent gotten much:
    robocopy.exe "F:\old_AD-MASTER\Applications\Applications" "\\bed-fs1\man_fs1\Applications" /sec /e /dcopy:t /mir


    I even tried addiing the /timfix switch and its a no go.

    The files have the correct timestamps but I need the folders to match up correctly. Right now robocopy is giving the modified date create date the same date and they are definitely different on the source.
Sign In or Register to comment.