I want to check the IP of my pppoe connection and if it is NOT of a particular IP range i want to execute a batch file.
i've figured out a rudimentary way of checking the IP address by executing 'ipconfig > c:\iptest.txt'
This generates a text file with the IPs of all my adapters.
Now is there any way I can check whether line 22, characters 53, 54, 55 are equal to 1, 8 and 5 respectively and if NOT to execute a batch file...?
Any help/suggestions to automate this process would be appreciated.
i've figured out a rudimentary way of checking the IP address by executing 'ipconfig > c:\iptest.txt'
This generates a text file with the IPs of all my adapters.
Now is there any way I can check whether line 22, characters 53, 54, 55 are equal to 1, 8 and 5 respectively and if NOT to execute a batch file...?
Any help/suggestions to automate this process would be appreciated.