Batch file for multiple ping Request???

April 23, 2011 at 06:27:06
Specs: Windows XP
I want to creat batch file for multiple ping requests for IPs (119.156.xxx.xxx, 119.156.xxx.xxx, 119.156.xxx.xxx). Each ping request should be opened in new cmd window .
Iam using Win XP

See More: Batch file for multiple ping Request???

Report •


#1
April 23, 2011 at 17:27:24
for %%a in (119.156.xxx.xxx 119.156.xxx.xxx 119.156.xxx.xxx) do start ping %%a

How To Ask Questions The Smart Way


Report •

#2
April 24, 2011 at 02:13:31
Sorry, I can't get understand.
Would u please send with complete script. I am at very begning to understand

Report •

#3
April 24, 2011 at 14:45:48
1. Open my computer, Go to tools menu (Press ALT + T) and select Folder options.
2. Switch to View Tab, Scroll down a bit until you see "Hide extensions for known file types.
3. Uncheck this check BOX, Hit Apply and OK.
4. Right click in a free space (not on any icons) on your desktop, select new , Select text document.
5. Rename the name as something.bat (make sure to remove the .txt extension and put .bat). usually the last 3 characters(Can be more then 3) of the file name after a . is called extension.
6. Now,Right click on the newly created file and select Edit.
7. Type below line in the text file.
@echo off
8.Now press enter.
9. Copy the code mentioned by Razor in above post and paste in that file.
10. Save the flie.
11. Now when you double click on the file, it will do what you asked .

PS: Make sure to replace the X in these IPs as the correct one before saving otherwise the request will fail. 119.156.xxx.xxx, 119.156.xxx.xxx,
119.156.xxx.xxx

Do let us know incase you have any questions.. We would be more than glad to assist you.

Have a good day.


Thanks.
Subhashchy

Subhash Chandra.


Report •

Related Solutions

#4
April 24, 2011 at 21:54:24
This is waht you asked for...
@echo off
%%a in (119.156.202.289 119.156.209.89 119.156.220.30) do start ping %%a

But this doesn't work. When I double click the created batch file on desktok. cmd windows just flick and disappears. What I have done wrong. Please correct me. I have unchecked "Hide extensions for known file types" tab.


Report •

#5
April 24, 2011 at 22:12:04
u r missing for /f

@echo off
for /f %%a in (119.156.202.289 119.156.209.89 119.156.220.30) do start ping %%a

Subhash Chandra.


Report •

#6
October 7, 2011 at 03:06:34
@echo off
for /f %%a in (119.156.202.289 119.156.209.89 119.156.220.30) do start ping %%a -t

(You need to put -t at the end of the statement)


Report •


Ask Question