i am new to .bat and cmd operations and scripting so i would be very thank-full for assistance from someone more experienced in Windows Batch scripting.
I got a file with the last Part of my IP Address inside, but this number is missing the leading zeros. For further simple copy and paste operations i would need this NUMBER always as a fully 3 digit Number.
This Number can be everything from 0 to 255, e.g:
I thought about a rule for adding zeros, like this:
NUMBER<10 + add 2 leading zero (e.g. 005)
NUMBER between 10 AND 99 + add 1 leading zero (e.g. 055)
NUMBER>99 + do nothing (e.g. 255)
So how do i access this NUMBER from file and how do i implement above rules as batch script?
How to used AND/OR for cmd scripts?