@echo off
if exist c:\Address.txt del c:\Address.txt
for /L %%a in (1,1,254) do ping 192.168.0.%%a -n 1 |
find /i "bytes=" > nul && echo 192.168.0.%%a >> c:\Address.txt
(unwrap line)
@echo off
if exist c:\Address.txt del c:\Address.txt
for /L %%a in (1,1,254) do ping 192.168.0.%%a -n 1 |
find /i "bytes=" > nul && echo 192.168.0.%%a >> c:\Address.txt
(unwrap line)
Do I have to write in the same line at the command prompt
all the command line you gave?:
@echo off
if exist c:\Address.txt del c:\Address.txt
for /L %%a in (1,1,254) do ping 192.168.0.%%a -n 1 |
find /i "bytes=" > nul && echo 192.168.0.%%a >>
c:\Address.txt
Do I have to write in the same line at the command prompt
all the command line you gave?:
@echo off
if exist c:\Address.txt del c:\Address.txt
for /L %%a in (1,1,254) do ping 192.168.0.%%a -n 1 |
find /i "bytes=" > nul && echo 192.168.0.%%a >>
c:\Address.txt
I gave you the code for a batch file. It is best to paste my
lines into a batch file of your own, to avoid mistakes. You
can then run the batch file instead of typing in my command.
It might be easier to download a port scanner. Many give you the
functionality of pinging a range of IP addresses to determine if there is a
live host.
-----Original Message-----
It might be easier to download a port scanner. Many give you the
functionality of pinging a range of IP addresses to determine if there is a
live host.
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.