Computing.Net > Forums > Windows XP > Schedules, Batch Jobs, and ROBOCOPY

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Schedules, Batch Jobs, and ROBOCOPY

Reply to Message Icon

Name: Razorcheeks
Date: December 30, 2003 at 09:11:03 Pacific
OS: XP Pro
CPU/Ram: XP2400+ / 1.5GB PC3200
Comment:

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!



Sponsored Link
Ads by Google

Response Number 1
Name: SVG
Date: December 30, 2003 at 10:34:05 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Schedules, Batch Jobs, and ROBOCOPY

batch job www.computing.net/answers/windows-xp/batch-job/170641.html

Recycler folder & gpedit.msc www.computing.net/answers/windows-xp/recycler-folder-amp-gpeditmsc/93380.html

copy and replace via batch file www.computing.net/answers/windows-xp/copy-and-replace-via-batch-file/146642.html