Why does the command file open one app at a time?

  • Thread starter Thread starter dcdon
  • Start date Start date
D

dcdon

rem name this file 3app.cmd
rem i.e. and windows
rem **********************************************
rem
rem***********************************************
rem
rem
rem

@echo off
cls
C:
notepad
calc
explorer

rem*************************************************************************
*********************
rem
rem*************************************************************************
*********************
rem
rem
 
Because once the program gets a command to open another program, the process
of opening that program seizes the attention of the CPU. When the program is
open, the original program picks up where it left off. Repeat the process.
 
Thanks

don


Because once the program gets a command to open another program, the process
of opening that program seizes the attention of the CPU. When the program is
open, the original program picks up where it left off. Repeat the process.
 
dcdon said:
Why does the command file open one app at a time?

Pease put you question in the body of the post, not just in the subject
line. Some newsreaders display only part of the Subject line or display
it at some distance from the text.

The "why" is because that's the batch syntax. Each command or application
executes completely before the next is invoked. To get what you
apparently want, use the start command:

start "Window Title 1" notepad
start "Window Title 2" calc
start "Window Title 3" explorer
 
Gary,
thx,
don
%o)
8|o)


dcdon said:
Why does the command file open one app at a time?

Pease put you question in the body of the post, not just in the subject
line. Some newsreaders display only part of the Subject line or display
it at some distance from the text.

The "why" is because that's the batch syntax. Each command or application
executes completely before the next is invoked. To get what you
apparently want, use the start command:

start "Window Title 1" notepad
start "Window Title 2" calc
start "Window Title 3" explorer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top