| @echo off&chcp 65001&cls&cd /d %~dp0 >nul | |
| net session >NUL 2>nul | |
| if %errorlevel% neq 0 ( | |
| @powershell start-process %~0 -verb runas | |
| exit | |
| ) | |
| netsh interface ipv4 set dns name="イーサネット" source=static addr="1.1.1.1" register=primary validate=no | |
| exit |
| @echo off&chcp 65001&cls&cd /d %~dp0 >nul | |
| net session >NUL 2>nul | |
| if %errorlevel% neq 0 ( | |
| @powershell start-process %~0 -verb runas | |
| exit | |
| ) | |
| netsh interface ipv4 set dns name="イーサネット" source=static addr="1.1.1.1" register=primary validate=no | |
| exit |