本帖最后由 zaqmlp 于 2021-11-7 23:35 编辑
- @echo off
- set info=互助互利,支付宝扫码头像,感谢赞助
- title %info%
- cd /d "%~dp0"
- :loop
- if "%~1" equ "" goto end
- echo;"%~1"
- (for /f "skip=2 tokens=1-4" %%a in ('type "%~1"') do (
- set/p=%%a,
- setlocal enabledelayedexpansion
- for %%e in ("%%c" "%%b") do (
- set "ext=%%~xe"
- if "%%~xe" neq "" (set/p=%%~ne!ext:~,10!,) else set/p=%%~e,
- )
- endlocal
- set/p=%%d
- echo;
- ))<nul>"#new_%~nx1"
- shift
- goto loop
- :end
- echo;%info%
- pause
复制代码
|