
CODE: [Copy to clipboard][ Last edited by dikex on 2007-11-2 at 10:09 PM ]echo Input a file:
set/p INPUTFILE=
if /i "%INPUTFILE%"=="" (
echo 111111111111
set INPUTFILE=Document.txt
goto :END
) else (
echo 222222222222222
if not exist "%INPUTFILE%" (
echo 333333333333
set INPUTFILE=Document.txt
goto :END
)
)
:BEGIN
echo #################
pause
goto :EOF
:END
set INPUTFILE=
echo @@@@@@@@@@@@@@@@@@
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |