
CODE: [Copy to clipboard]@echo off
set ip=
set /p ip=请输入IP地址(格式:192.168.1.6):
if "%ip%"=="" goto _getfromfile
echo %ip% > %TEMP%\YouIp.tmp
goto _next
:_getfromfile
if not exist %temp%\YouIp.tmp goto _quit
for /f %%i in (%TEMP%\YouIp.tmp) do set ip=%%i
if not "%ip%"=="" goto _next
goto _quit
:_next
echo %ip% &pause
...
:_quit
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |