Robocopy Executing Multiple Run Time Parameters with /RH

只谈情不闲聊 提交于 2019-12-11 06:06:44

问题


I would like to have multiple run times for Robocopy using parameter /rh:hhmm-hhmm . "Specifies run times when new copies may be started."

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy

If I want to job to run from 3-4 am, then 7-8 am, how would I conduct this? Can I place in 1 command or would I require multiple robocopy calls? trying to figure out syntax

Option 1:
robocopy C:\Source   C:\Destination   /MIR  /rh:300-400;700-800

Option 2:
robocopy C:\Source   C:\Destination   /MIR  /rh:300-400
robocopy C:\Source   C:\Destination   /MIR  /rh:700-800 

来源:https://stackoverflow.com/questions/56350801/robocopy-executing-multiple-run-time-parameters-with-rh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!