title: Batch/VBS: asking for user input and with his data replace a string in a existent text file
body: <p>I need a vbs or batch to ask to user a value and after, put this value in a text file where I've to replace an existent value...</p>
  
  <p>Currently, with a batch file, I can get user input and put it into a variable, but I can't find any feature to find a "part of a numeric string" (ip address) in to text file and replace it.</p>
  
  <p>ES:</p>
  
  <p>Let's say that the text file is "hosts.txt":</p>
  
  <p>172.16.<strong>16.1</strong>       serverA</p>
  
  <p>172.16. are constant value, I've to replace only the other 2 octet "<strong>16.1</strong>"...</p>
  
  <p>All tools  that I know can't use "*" symbol in the search string options...</p>
  
  <p>I can remove all ip address value or full line, but in this case I've to know the last value of ip address for find it and then add name record at the end of new value...</p>
  
  <p>I cannot install anything into the clients, they are not under my administration.</p>
  
  <p>Can you help me please?</p>
  
  <p>Thanks, Robby.</p>