Soldato
- Joined
- 16 May 2008
- Posts
- 2,579
- Location
- Bristol
Hi,
I need to make a batch file which takes an IP, then subtracts 1 from the 4th octet and assigns the new value to a variable.
eg:
Enter IP 10.10.10.10
output: 10.10.10.9
I'm struggling to think of a solution without using a third party application.. Any ideas?
I need to make a batch file which takes an IP, then subtracts 1 from the 4th octet and assigns the new value to a variable.
eg:
Enter IP 10.10.10.10
output: 10.10.10.9
I'm struggling to think of a solution without using a third party application.. Any ideas?
