Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 62279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:27:03+00:00 2026-05-10T18:27:03+00:00

I have the following layout for my test suite: TestSuite1.cmd: Run my program Check

  • 0

I have the following layout for my test suite:

TestSuite1.cmd:

  1. Run my program
  2. Check its return result
  3. If the return result is not 0, convert the error to textual output and abort the script. If it succeeds, write out success.

In my single .cmd file, I call my program about 10 times with different input.

The problem is that the program that I run 10 times takes several hours to run each time.

Is there a way for me to parallelize all of these 10 runnings of my program while still somehow checking the return result and providing a proper output file and while still using a single .cmd file and to a single output file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:27:04+00:00Added an answer on May 10, 2026 at 6:27 pm

    Assuming they won’t interfere with each other by writing to the same files,etc:

    test1.cmd

    :: intercept sub-calls.   if '%1'=='test2' then goto :test2  :: start sub-calls.   start test1.cmd test2 1   start test1.cmd test2 2   start test1.cmd test2 3  :: wait for sub-calls to complete. :loop1   if not exist test2_1.flg goto :loop1 :loop2   if not exist test2_2.flg goto :loop2 :loop3   if not exist test2_3.flg goto :loop3  :: output results sequentially   type test2_1.out >test1.out     del /s test2_1.out     del /s test2_1.flg   type test2_2.out >test1.out     del /s test2_2.out     del /s test2_2.flg   type test2_3.out >test1.out     del /s test2_3.out     del /s test2_3.flg    goto :eof :test2  :: Generate one output file   echo %1 >test2_%1.out   ping -n 31 127.0.0.1 >nul: 2>nul:  :: generate flag file to indicate finished   echo x >test2_%1.flg 

    This will start three concurrent processes each which echoes it’s sequence number then wait 30 seconds.

    All with one cmd file and (eventually) one output file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 100k
  • Answers 100k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer DataTables are definitely much heavier than Lists, both in memory… May 11, 2026 at 8:00 pm
  • Editorial Team
    Editorial Team added an answer A decorator seems a better option to me. I am… May 11, 2026 at 7:59 pm
  • Editorial Team
    Editorial Team added an answer The current version has improved support for tab order, so… May 11, 2026 at 7:59 pm

Related Questions

I have the followign bash script to update mtimes for maildir files: #!/bin/bash for
I copied the log4net samples to implement a custom log level, AUDIT. I defined
I'm running Visual Studio 2008 - and have a problem with log4net logging (v1.2.10).
Here is a simple overview of my directory layout for my views: Project Page

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.