回复 1# 小白来了 - @echo off
- set "OldFolder=C:\Test\From"
- set "NewFolder=C:\Test\To"
- setlocal enabledelayedexpansion
- for %%i in ("%OldFolder%\*.ass") do (
- set "str=%%i"
- echo,!str!
- (for /f "tokens=1* delims=:" %%a in ('findstr /n .* "%%i"') do (
- if not "%%b" == "" (
- set "ThisRow=%%b"
- if "!ThisRow:PlayResX:=!" == "!ThisRow!" (
- echo,!ThisRow!
- ) else (
- echo,PlayResX: 188
- )
- ) else (
- echo,
- )
- ))>"%NewFolder%\%%~nxi"
- )
复制代码
|