Update file or folder Date Modified

前端 未结 4 1768
无人共我
无人共我 2021-01-03 09:14

I need to update the \"Date Modified\" property of files and folders as they are copied from one location to the other so that \"Date Modified\" = Current System Time. I ha

4条回答
  •  死守一世寂寞
    2021-01-03 09:40

    Robocopy should be able to do this for you. robocopy is a native tool included in Windows since Vista.

    robocopy "\sharepoint\dept\gis\Abandoned_Wire" "\corp.dom\fs4\g1\OUTPUT\GRIDPROD\PDF\Maps\Abandon Wire Maps" /COPY:DA /S /IS
    

    By default robocopy will copy DAT: Data, Attributes, and the Time stamps, but this can be controlled with the /COPY flag.

    See robocopy /? for all the options.

提交回复
热议问题