I have a batch file (
run.bat) which is to change my IP address setting:
netsh interface ip set address "lan" static 192.168.30.77 255.255.255.0 192.168.30.2
The command worked as I expected when I type it directly in a
cmd shell, but not when I put it in
run.bat (which I ran with administrator access).
How do I fix this?