problem making a batch script

May 10, 2012 at 00:34:26
Specs: Windows 7
i'm trying to make a script that will ping an entire subnet by getting input from user
what is wrong in the next script, or how can i make it work ? :

SET /P a=Please Enter The 1st Octate :
SET /P b=Please Enter The 2nd Octate :
SET /P c=Please Enter The 3nd Octate :

for /L %%d in (1,1,254) do ping %a%.%b%.%c%.%%d | find /i "TTL" >> 1.txt

See More: problem making a batch script

Report •

May 11, 2012 at 01:57:10
Works for me.

Life is too important to be taken seriously.


Report •
Related Solutions

Ask Question