@echo off set /p IP1=Enter IP address: set SM=255.255.255.255 set IP2=%IP1% netsh interface ip set address "Ethernet" static %IP2% %SM% %IP1% pause goto