how to let batch file to run two pgm wihtout waiting for first

  • Thread starter msnews.microsoft.com
  • Start date
M

msnews.microsoft.com

for example, if I want a batch file to open two instances of notepad on
c:\a.txt and c:\b.txt so that I can switch between the two, what option or
command can I execute to let this happen only for this batch file's
execution?

setlocal
notepad c:\a.txt
notepad c:\b.txt
end local

the above will open b.txt only when I close a.txt in this client domain
what commnd or option can I use after setlocal to have both instances
running?
 
B

Big_Al

msnews.microsoft.com said:
for example, if I want a batch file to open two instances of notepad on
c:\a.txt and c:\b.txt so that I can switch between the two, what option or
command can I execute to let this happen only for this batch file's
execution?

setlocal
notepad c:\a.txt
notepad c:\b.txt
end local

the above will open b.txt only when I close a.txt in this client domain
what commnd or option can I use after setlocal to have both instances
running?

try "call notepad ....." instead.
 
M

msnews.microsoft.com

thx but call or without call does not make any difference. I think I need to
set an option of sort but I forgot what it is
the suffix .bat and .cmd behaves exactly the same the OS is xp pro sp2 under
a Domain
 
M

msnews.microsoft.com

Great!, it works

thank you very much, Swifty. much appreciated
where di you get this start info from?
 

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

Top