Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a text file that will have 2 entries per line. They are servername and a IP address. I would like to create a batch file that would parse each line in the text file to be fed into two variables (one for server name one for the ip address) and then feed these into netsh.
The text file would look like this:
server1 10.0.0.1
server2 10.0.0.2
server3 10.0.0.3The netsh command is:
netsh wins server \\winsserv1 add name name=%var1% IP={%var2%}Is there any way to create a batch file to do this?
![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |