0
I need to paste the result of clip command into netsh interface ip address
FOR /F "tokens=*" %%i in ('ipconfig ^| find "IPv4"') do SET result=%%i
echo %result:IPv4 Address. . . . . . . . . . . : =% | clip
netsh interface ip set address name="Local Area Connection" static %clip% 255.255.255.0 192.168.1.1
You shouldn't duplicate your questions on both SU and SO, so delete one of the copies. – Karan – 2013-07-16T17:14:11.087
@karan will do though i thought they were two different networks – user2586774 – 2013-07-17T08:23:46.820