::從本體的skip=9行復制文本內容到一個新文件run2.cmd
for /f "useback skip=9 tokens=* " %%a in ("%~f0") do (echo %%a>>run2.cmd)
::判斷循環執行開始
set /a mix=1
set /a max=1000
set /a temp=1
:go1
if %temp%==%max% goto go2
set /a temp=%temp%+1
echo %time%
goto go1
:go2
::判斷循環執行結束
::改ip
set ipd="192.168.1.25" ::本機IP
set maskd="255.255.255.0" ::子網掩碼
set gated="192.168.1.1" ::網關
set dns1=202.103.44.150 ::主DNS
set dns2=202.103.24.68 ::副DNS
netsh interface ip set address source=static addr=%ipd% mask=%maskd% gateway=%gated% gwmetric=1
netsh interface ip set dns source=static addr=%dns1% register=primary
netsh interface ip add dns addr=%dns2% index=2