Page 1 of 2 12 LastLast

  1. Join Date : Oct 2016
    Posts : 18
    Windows 10 Pro, 64 bit
       16 Oct 2016 #1

    Parallel batch jobs in one scheduled task


    Parallel batch jobs in one scheduled task

    hi,

    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)


    http://www.aanning.com/ajissues/Para..._tasks/ss1.jpg

    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?
    Thanks James.
    Attached Thumbnails Attached Thumbnails ss1.jpg  
      My System SpecsSystem Spec


  2. Join Date : May 2015
    Central IL
    Posts : 2,948
    EL Capitan
       16 Oct 2016 #2

    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.
      My System SpecsSystem Spec


  3. Join Date : Oct 2016
    Posts : 18
    Windows 10 Pro, 64 bit
       16 Oct 2016 #3

    bro67 said: View Post
    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.

    http://www.aanning.com/ajissues/Para...uled_tasks/af/
      My System SpecsSystem Spec


  4. Join Date : May 2015
    Central IL
    Posts : 2,948
    EL Capitan
       16 Oct 2016 #4

    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.
      My System SpecsSystem Spec


  5. Join Date : Oct 2016
    Posts : 18
    Windows 10 Pro, 64 bit
       16 Oct 2016 #5

    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!
      My System SpecsSystem Spec


  6. Join Date : May 2015
    Central IL
    Posts : 2,948
    EL Capitan
       16 Oct 2016 #6

    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.
      My System SpecsSystem Spec


  7. Join Date : Oct 2016
    Posts : 18
    Windows 10 Pro, 64 bit
       16 Oct 2016 #7

    bro67 said: View Post
    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
      My System SpecsSystem Spec


  8. Join Date : May 2015
    Central IL
    Posts : 2,948
    EL Capitan
       17 Oct 2016 #8

    Janning said: View Post
    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.
      My System SpecsSystem Spec


  9. Join Date : Oct 2016
    Posts : 18
    Windows 10 Pro, 64 bit
       17 Oct 2016 #9

    bro67 said: View Post
    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.
      My System SpecsSystem Spec


  10. Join Date : Dec 2015
    Posts : 48
    Windows 10 Home x64 v1511, many others virtualized
       17 Oct 2016 #10

    You may use the Start command to run several child CMD files simultaneously from one parent.
    Start

    Try these three files:

    *batch.cmd*
    start task1
    start task2

    *task1.cmd*
    pause First task
    exit

    *task2.cmd*
    pause Second task
    exit

    Take notice of "exit" commands, they are necessary to close child cmd windows.

    -------------------------------
    bro67 looks like a random text generator, just ignore it.
      My System SpecsSystem Spec


 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
Odd scheduled task
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 The...
AntiVirus, Firewalls and System Security
Scheduled task to decrease UAC level?
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...
AntiVirus, Firewalls and System Security
Scheduled task to run on idle triggers too soon
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...
Performance & Maintenance
Solved Task Scheduler Errors - SPP & other scheduled tasks
Hi, 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: a)...
General Support
Solved Build 10074 Windows Defender scheduled task scans ?
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. Windows...
AntiVirus, Firewalls and System Security
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 00:47.
Find Us
Twitter Facebook Google+



Windows 10 Forums