
CODE: [Copy to clipboard]@echo off&setlocal EnableDelayedExpansion
for /f "delims=. tokens=1*" %%a in ('dir /b "* .txt"') do (
set temp1=%%a
set temp1=!temp1:~0,-1!
echo !temp1!_
)
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |