opening multiple dos command with ping -t from a .BAT file


I am  hoping to use a .VBS or .BAT file to lunch multiple CMD windows, each window  pinging a computer with the -t variable.

ping.exe computer1 -t
ping.exe computer2 -t
ping.exe computer3 -t

each of these being in a separate window, all windows launching and running at the same time.

Any thoughts on how I can do this?

Thank you
LVL 2
ChicagoMikeWAsked:
Who is Participating?
 
BrandonGalderisiConnect With a Mentor Commented:
use "START"

start ping.exe computer1 -t
start ping.exe computer2 -t
start ping.exe computer3 -t
0
 
Christopher McKayConnect With a Mentor Microsoft Network AdministratorCommented:
Use the "start" command.

batch file example:

start ping computer1 -t
start ping computer2 -t
start ping computer3 -t




Hope this helps!

:o)

Bartender_1
0
 
Christopher McKayMicrosoft Network AdministratorCommented:
Looks as if I'm a bit slow on the draw.

Sorry BrandonGalderisi, I didn't intend to duplicate you.

:o)

Bartender_1
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
... and to make it more compact, let's FOR it ... and run all that windows minimized.

for %C in (computer1 computer2 computer3) do start /min ping -t %C

(In batch file, use %%C in both occurances)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.