Solved

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

Posted on 2009-05-11
4
851 Views
Last Modified: 2012-05-06

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
0
Comment
Question by:ChicagoMikeW
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 450 total points
Comment Utility
use "START"

start ping.exe computer1 -t
start ping.exe computer2 -t
start ping.exe computer3 -t
0
 
LVL 22

Assisted Solution

by:Bartender_1
Bartender_1 earned 50 total points
Comment Utility
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
 
LVL 22

Expert Comment

by:Bartender_1
Comment Utility
Looks as if I'm a bit slow on the draw.

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

:o)

Bartender_1
0
 
LVL 68

Expert Comment

by:Qlemo
Comment Utility
... 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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now