Schedule RoboCopy
hi all,
i have problem using robocopy. using windows 2008 server. wrote batch file using robocopy. setup schedule in task scheduler. problems are:
1) in task scheduler, setup "stop task if runs longer 12 hours", want stop robocopy if runs more 12 hours. not work. in last run result field, shows "the last run of tak terminated user", robocopy didn't stop, checked task manager, in processes tag, show robocopy running.
2) using robocopy, don't know why shows newer in log file, acturall, these files didn't changed. 1 know how robocopy work timestamp. time stamp robocopy check. created date, save date, modify date or date?
thanks in addvice,
issue 1 solutions:
1) use robocopy run hours (/rh:) option. way run during hours specified in command line....however exe resident in memory whole time...checking clock know when can run. limits needing terminate it.
2) schedule taskkill /f /im robocopy.exe terminate program instead.
issue 2:
i believe uses combination of last modified time stamp , size. if either changes considered new. know explained in documentation version prior being bundled winth 2008. see if can find download , documentation version.
Windows Server > File Services and Storage
Comments
Post a Comment