Scheduled tasks in seconds

June 1, 2009 at 18:00:50
Specs: Windows 2003, 4 GB

I have a 2 sided question re: Scheduled tasks:

1) Is it at all possible to run a task every "x" seconds ie 5 seconds

2) If so would this impede server performance?

I've written a a one liner .bat script using the robocopy command and need it to check against a folder and copy over any differences to a destination. I'm not the greatest at coding as I know one option is to "loop" it. Is there any other ideas you folks can lend me?

TIA

boo


See More: Scheduled tasks in seconds

Report •


#1
June 2, 2009 at 10:08:48

I think 5min's is the quickest that Sched tasks will allow to trigger programs.

If it is in a batch file, you could repeat your line of code placing a 5 second pause in between each line. Put enough lines and pauses in the batch to last for 5 min's.

Get scheduled tasks to trigger the batch every 5 min, and let the batch do the rest.

If the actual batch envolves checking folders and copying contents accross i would expect that this will impact performance.

What is the aim of this task? Just wondering if DFS will be a better solution.

Gavin


Report •
Related Solutions


Ask Question