I am unable to find a way to create a dynamic batch file for NETSH commands.
I have created static files to give IP and DNS address(es).
I want to know how do I enable user input and put those values in the succeeding command?
For example:
netsh interface set interface name=Ethernet admin=disabled
How do I create a variable which user will assign a value to and enforce that variable at place of ethernet?
Example 2:
netsh interface ipv4 set address name="Wi-Fi" static 10.0.0.159 255.255.255.0 10.0.0.1
How do I do same for multiple values such as those highlighted?