Windows10でhosts編集ウィンドウを一発で開く
powershell -NoProfile -ExecutionPolicy unrestricted -Command "start notepad C:\Windows\System32\drivers\etc\hosts -verb runas"
これを edit_hosts.bat みたいな名前で保存して、ダブルクリックで起動したらOK。
powershell -NoProfile -ExecutionPolicy unrestricted -Command "start notepad C:\Windows\System32\drivers\etc\hosts -verb runas"
これを edit_hosts.bat みたいな名前で保存して、ダブルクリックで起動したらOK。