|
@echo off
cd /d %systemroot%\system32
for /f "tokens=2 delims=," %%i in ('@reg query "HKLM\SYSTEM\CurrentControlSet\Control" /v SystemStartOptions ^|find /i "SystemStartOptions"') DO (
set SERVER=%%i
)
ECHO 服务端计算机名:%server%
ping %SERVER% -4 -n 1 | find "[" || goto error
for /f "tokens=2 delims=[]" %%a in ('ping -4 -n 1 %SERVER% ^| find /i "]"') do SET PXEIP=%%a
想知道原理 和这些话的意思
|
|