In a DOS script, how would I compare a returned value to a value that I
set and then return a true or false?
I want to compare the first 3 sets or the third set of numbers in %ip% to
the home ip.
for /f "delims=[] tokens=2" %%a in ('ping shaws104 -n 1 ^| findstr "["')
do (set ip=%%a) echo %ip% set home=192.168.100.xxx
No comments:
Post a Comment