Batch/VBS: asking for user input and with his data replace a string in a existent text file
问题 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... 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. ES: Let's say that the text file is "hosts.txt": 172.16. 16.1 serverA 172.16. are constant value, I've to replace only the other 2 octet " 16.1 "... All tools that I know can't