Can you run 2 .cmd files from 1 command?

  • Thread starter Thread starter Mike Martin
  • Start date Start date
M

Mike Martin

I have 2 cmd files that do some copying for me. They are very large
jobs and I would like to run them both at the same time. Is there a
way to run 2 .cmd files at the same time? If I make a .cmd file that
has the lines:
job1.cmd
job2.cmd
It simply runs one job, then when it's finished it runs the 2nd job.
What I would like is to run both jobs at the same time.
Any suggestions?
 
In said:
I have 2 cmd files that do some copying for me. They are very large
jobs and I would like to run them both at the same time. Is there a
way to run 2 .cmd files at the same time? If I make a .cmd file that
has the lines:
job1.cmd
job2.cmd
It simply runs one job, then when it's finished it runs the 2nd job.
What I would like is to run both jobs at the same time.
Any suggestions?

START

START /?

If you START them they will be each running in a spawned process at
once.

Hint. Always include the "" for the TITLE option (even if you don't
use a Title). Saves colliding with FullyQualifiedPaths containing
spaces that must be wrapped in double-quotation marks.

Maybe you'd also want START's /MIN switch.
 
Mike Martin said:
I have 2 cmd files that do some copying for me. They are very large
jobs and I would like to run them both at the same time. Is there a
way to run 2 .cmd files at the same time? If I make a .cmd file that
has the lines:
job1.cmd
job2.cmd
It simply runs one job, then when it's finished it runs the 2nd job.
What I would like is to run both jobs at the same time.
Any suggestions?

The START command will do what you need.

START "WindowTitleForJob1" job1.cmd
START "WindowTitleForJob2" job2.cmd

*******

See (http://TheSystemGuard.com/TheGuardBook/CCS-Int/START.htm)
for a cross-platform syntax page.

-tsg

/-----------------+---------------+----------------------\
| COMPATIBILITY | CLARITY | SPEED |
| Write code ONCE | Make it clear | THEN...Make it fast! |
\-----------------+---------------+----------------------/
400+ command-line resources using ONLY native NT commands!
(http://TheSystemGuard.com/default.asp#MasterCommandList)
 
Back
Top