问题
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