Windows 10: Parallel batch jobs in one scheduled task
Parallel batch jobs in one scheduled task
Parallel batch jobs in one scheduled task
This should be an easy answer. I want to create one scheduled task, it will be called "CLEAR_PHOTOSBYDATE", see attached pic or (approximate example, not literal job...yet)
In this task I will have several batch jobs. I know how to set it up to run them consecutively, 1st one runs, the 2nd will not run till first completes. I want it to kick of the first batch job, then immediately kick off the 2nd, 3rd etc., I want to run them all at once in parallel.
How is this done?
Helps to know what each task that you want to do. Also is this on a server, laptop or desktop.
Also why do you eant to clear the data if pictures.
Because its tied to WEB cams that detect motion, gets big over time....takes up space. I'll put the whole batch system, you can see. I know I'll be slammed on technique and "why this and why that" and you "should do this"..
Keep in mind, its a work In progress, and as with all code, it started small and grew on what was there instead of complete redesign. Basically I just need to kick off simultaneous batch jobs, the rest I can clean up later.
Whats there now, is what I copy pasted from my original bat file, in an effort to have one bat, use "start" command to kick off 8 other bat all at once. START CLEAR_PHOTOSBYDATE_M.BAT, should kick off 0-7 files
If you go to below, I had to rename all the .bat to .txt so they can be opened here.
First stop linking the text output that you want us to look at. Second post the text output into a post, otherwise you are going to be running yourself in circles. Third if this is a DVR program you are developing on your own, what are you using for this? Also you are talking about something that needs to be a part of your code to be able to run schedules on. It is not something you can have Windows do outside of the program, otherwise you are going to screw up the databases for your DVR program and end up with a bigger headache.
1) I didn't link text output I linked a picture, then asked what each task does...its WAY easier to look at in this method, as opposed to all posted like a novel. 2) Not sure how there'd be any "circles"...pretty st forward to follow 3) Its not a DVR program, and makes no difference what I'm using it for, I need a generic method to run any job concurrent with another. 4) No data bases...again, Its not a DVR program, and makes no difference what I'm using it for, I need a generic method to run any job concurrent with another.....5) I figured it all out...was pretty easy, just needed some feedback to get thinking....so, thanks!
Still do not link pictures, place them inline into the post. The easy way is to keep the scheduling in the program code. Having an OS do Housekeeping is only asking for headaches.
We must be talking about two very different process. There is noway writing code for the scheduling of something like I want, would be easier than point n click setups in the GUI, and I'm saying this, "as a software developer"...only since 1984, but still a developer
Yes you are looking at this as just let the OS do the duty of something that is required to have the program that is handling the cameras do it. I have already stated that you need to use a schedule in the program, not to let Windows handle that housekeeping. Otherwise it will cause a bunch of database problems when the program tries to do anything with the images from the cameras.
READ my request...I ONLY want a generic solotion for multi .bat kick off. I do not have ANY data bases...there's no data base....and I am familiar with "what" a database is....I'm an ORacle dB developer for 20 years now.....so, hear me well....there is no database involved.
Account closed as requested
You may use the Start command to run several child CMD files simultaneously from one parent.
Try these three files:
pause First task
pause Second task
Take notice of "exit" commands, they are necessary to close child cmd windows.
bro67 looks like a random text generator, just ignore it.
Hi guys. I found this odd scheduled task named 'UninstallDDS-C960901F-CE14-4DE1-9729-1305F719A337'.
The task is set to run at 14:54 on 25/1/16 and then repeat every 00:01:00 indefinitely.
The target is C:\Windows\temp\deletefoldertask.exe
I have the local admin rights on my work laptop but at the same time GPO enforces default UAC settings on the power up. This is annoying as it prevents some apps I use from proper running (e.g. PhraseExpress or DirectFolders). I have no idea why...
I had this problem with windows 8/8.1 as well but don't remember what I did to fix it and can't seem to figure it out this time. I had to reinstall Windows 10 after upgrading to it, and forgot to write down my settings for this.
I have a simple...
Been noticing a number of errors when I open task scheduler for e.g. SVC Restart Task - The task XML contains a value that is incorrectly formatted or out of range" Other than the aforementioned task there are errors with the following:
I installed Build 10074 as a clean install in a VM.
I see Windows Defender running a quick scan MANY times per day.
I would prefer it run a quick scan once a week.
I disabled the built in Windows Defender Scheduled Scan scheduled task.