Results 1 to 2 of 2

Thread: Change string in textfile to be incremented

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2012
    Posts
    9

    Unhappy 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...

  2. #2
    Addicted Member
    Join Date
    Jul 2009
    Posts
    208

    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
  •  



Click Here to Expand Forum to Full Width