Parallel batch jobs in one scheduled task

Page 1 of 2 12 LastLast

  1. Posts : 70
    Windows 10 Pro, 64 bit
       #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 Parallel batch jobs in one scheduled task-ss1.jpg  
      My Computer


  2. Posts : 9,765
    Mac OS Catalina
       #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 Computer


  3. Posts : 70
    Windows 10 Pro, 64 bit
    Thread Starter
       #3

    bro67 said:
    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 Computer


  4. Posts : 9,765
    Mac OS Catalina
       #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 Computer


  5. Posts : 70
    Windows 10 Pro, 64 bit
    Thread Starter
       #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 Computer


  6. Posts : 9,765
    Mac OS Catalina
       #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 Computer


  7. Posts : 70
    Windows 10 Pro, 64 bit
    Thread Starter
       #7

    bro67 said:
    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 Computer


  8. Posts : 9,765
    Mac OS Catalina
       #8

    Janning said:
    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 Computer


  9. Posts : 70
    Windows 10 Pro, 64 bit
    Thread Starter
       #9

    bro67 said:
    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 Computer


  10. Posts : 72
    Windows 10 Home x64 v1511, many others virtualized
       #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 Computer


 

  Related Discussions
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 11:27.
Find Us




Windows 10 Forums