|
-
Jul 17th, 2012, 10:46 AM
#1
Thread Starter
New Member
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??
I understand how to read and write to text files, its just that I do not know how to increment a string like that...
-
Jul 17th, 2012, 05:00 PM
#2
Addicted Member
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|