ghdhair100
czołg
Dołączył: 15 Gru 2010
Posty: 1818
Przeczytał: 0 tematów
Ostrzeżeń: 0/10 Skąd: England
|
Wysłany: Pon 12:37, 07 Mar 2011 Temat postu: 本机IP&mac绑定,& |
|
|
@echo OFF
arp -d
if %~n0==arp exit
if %~n0==Arp exit
if %~n0==ARP exit
echo 正在获取本机信息.....
:IP
FOR /f "skip=13 tokens=15 usebackq " %%i in (`ipconfig /all`) do Set IP=%%i && GOTO MAC
:MAC
FOR /f "skip=13 tokens=12 usebackq " %%i in (`ipconfig /all`) do Set MAC=%%i && GOTO GateIP
:GateIP
arp -s %IP% %MAC%
echo 正在获取网关信息.....
FOR /f "skip=17 tokens=13 usebackq " %%i in (`ipconfig /all`) do Set GateIP=%%i && GOTO GateMac
:GateMac
ping %GateIP% -t -n 1
FOR /f "skip=3 tokens=2 usebackq " %%i in (`arp -a %GateIP%`) do Set GateMAC=%%i && GOTO Start
:Start
arp -s %GateIP% %GateMAC%
echo 操作完成,[link widoczny dla zalogowanych]!!!
net time [url=file://\\vod]\\vod[/url] /set /y
echo 取电脑号.....
FOR /f "skip=3 tokens=16 usebackq " %%i in (`ipconfig /all`) do Set cp=%%i && GOTO GetNo
:GetNo
set n=%cp%
SET /a n=1%n%-1000
echo 取当前时间.....
ECHO %TIME% >TIME.INI
FOR /F "delims=: tokens=1,[link widoczny dla zalogowanych],2,3" %%a IN (TIME.INI) DO SET H=%%a & SET M=%%b
DEL TIME.INI
::判断是否是包厢,包厢增加限制片
IF %n% GEQ 121 GOTO IS
::判断,[link widoczny dla zalogowanych],8点前23点以后.跳转.增加限制片
IF %H% GEQ 23 GOTO IS
IF %H% LSS 8 GOTO IS
IF exist [url=file://\\movie\movie\1\movie.ini]\\movie\movie\1\movie.ini[/url] (copy [url=file://\\movie\movie\1\movie.ini]\\movie\movie\1\movie.ini[/url] %cd%\ /y) else (copy %cd%\1\movie.ini %cd%\ /y)
goto ext
:IS
IF exist [url=file://\\movie\movie\1\movie.ini]\\movie\movie\1\movie.ini[/url] (copy [url=file://\\movie\movie\2\movie.ini]\\movie\movie\2\movie.ini[/url] %cd%\ /y) else (copy %cd%\2\movie.ini %cd%\ /y)
goto ext
:extMany years ago there lived an Emperor who was so exceedingly fond of fine new clothes that he spent vast sums of money on dress. To him clothes meant more than anything else in the world. He took no interes
related links:
心情三题
Post został pochwalony 0 razy
|
|