Change string in textfile to be incremented
Hi all,
I am working with VBscript, and I need to manipulate a varying IP address that is written as a string to an INI text file.
The user enters an IP address that follows the format of 10.x.y.50 (where x and y change based on the computer the user is working on). I need to be able to increment the user input as follows: 10.(x+10).(y+15).50
How do I do this when the IP address is written as a string in an INI file??:confused:
I understand how to read and write to text files, its just that I do not know how to increment a string like that...
Re: Change string in textfile to be incremented
Have a look at the Split function to separate the octets, then concatenate the modified parts or use the Join function.