Search found 1 match
- 06 Oct 2016 10:49
- Forum: DOS Batch Forum
- Topic: Regular expressions not working in batch script for pinging subnet
- Replies: 3
- Views: 4578
Regular expressions not working in batch script for pinging subnet
Hello. I have the following batch script to ping all ip addresses on my subnet: FOR /L %%i IN (1,1,254) DO PING -n 1 192.168.2.%%i | FINDSTR /i /R "Reply from ^(192.168.4.20)" I want to only show machines which reply to the ping, excluding a "Reply from 192.168.4.20: Destination host ...