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.
Scheduled tasks in seconds
Name: booboo Date: June 1, 2009 at 18:00:50 Pacific OS: Windows 2003 CPU/Ram: 4 GB Subcategory: General
Comment:
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?
Name: GavinR Date: June 2, 2009 at 10:08:48 Pacific
Reply:
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.
Summary: Hi I am in need to scheduled several batch files that will do all kind of things on our network. Our company policy forces through AD a password change every 30 days and I can’t get a “backupadmin...
Summary: I'm trying to create a scheduled task on a remote server. I'm using schtasks.exe. The remote server has no domain. I type the line: c:\> schtasks /create /s server /tn taskname /sc minute /tr taskbat...
Summary: Hi, I was wondering if someone could help, as I am new to this kind of stuff. (Hopefully I have posted in the right category!) Particulars: Windows Server 2003, classic asp I have created a scheduled...