
CODE: [Copy to clipboard]test2.batcall test2.bat 1 2 3 4 5 6 7 8 9
CODE: [Copy to clipboard]给个思路,代码未测试:start1
if "%1"=="" goto end
find "%1" A.TXT
if errorlevel 0 goto xxx
shift
goto start1
:xxx
shift
echo %1>A.TXT
:end
CODE: [Copy to clipboard]test2.bat@echo off
call test2.bat 1 2 3 4 5 6 7 8 9
CODE: [Copy to clipboard]:start1
if "%1"=="" goto end
find "%1" A.TXT>nul
if not errorlevel 1 if errorlevel 0 goto xxx
shift
goto start1
goto end
:xxx
shift
echo ^%1>A.TXT
:end
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |