parse txt file for IP and use data to ping
Posted on 2003-03-29
i'm tring to make some automated dos scripts to collect some system info
the one ive been stuck on for a week or so is ;
objective parse data.txt file for ip address and gateway and ping each in turn
systems ( windows 9x and 2K )
content of data.txt file;
IP Address. . . . . . . . . . . . : 192.168.100.32
Default Gateway . . . . . . . . . : 192.168.100.1
content of script to get data.txt file
ipconfig |..\prog\grep.exe "IP Address"
ipconfig | ..\prog\grep.exe "Default Gateway"
1 script gets ip info
2 script pings results
3 script places success msg in results.txt file
thx for any help