Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have two questions in this one. One regarding scheduled tasks and the other regarding a batch job:
1) To keep things simple, how do I schedule a batch file that initializes a ROBOCOPY statement to run ever hour or so? I can get it scheduled on a daily rate or every time the PC is started, but I really need it to run every hour or two.
2) I tried to do it [every half hour] within the batch job/ROBOCOPY statement itself using a loop with a sleep command but the problem I was getting with that was a NEW process after each "sleep" instead of just restarting the current process. Because I was away from the PC for about 5 hours, I came back and had 10 of the "ROBOCOPY" instances running in the task pane and hogging all the CPU/RAM; thus rendering the PC useless until they were all killed. I think the reason I was getting this problem was because I didn't have a "kill" statement after the ROBOCOPY and before the "sleep" command. If I put a "kill" statement in the batch, will it solve this problem and if so, where should it be placed? (i.e. in between the ROBOCOPY and SLEEP)
Thanks everyone!

Hi Razorcheeks,
What programming-language are you referring to? Is this a .bat file editing question? Feel free to post the code if you want to.
This program could be an easier alternative:
WinTask [Record & Replay & Schedule Actions]svg

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |