本帖最后由 pcl_test 于 2015-4-8 14:59 编辑
- @echo off & setlocal enabledelayedexpansion
- for %%a in (*.txt) do (
- (for /f "tokens=1* delims=:" %%b in ('findstr /n .* "%%a"') do (
- set str=%%cж
- set str=!str:ABCDEFGHIJK=%%~nxa!
- echo,!str:~,-1!
- ))>$
- move $ "%%a"
- )
- pause
复制代码
|