
CODE: [Copy to clipboard]@echo off
:input
cls
set file=
set /p file= 请输入文本文件路径:
for %%i in ("%file%") do (
echo %%~ai|find /i "d">nul && goto input
)
if /i not "%file:~-4%"==".txt" goto :input
echo %file%
set new=new%file%
echo two>>%new%
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |