- @echo off
- setlocal enabledelayedexpansion
- set file=%~n1
- set linetotal=0
- type nul >"%temp%\%file%_avs_temp1.txt"
- :ok
- if not "%~1"=="" (
- set /a linetotal+=1
- echo directshowsource^(^"%~1^"^)^.changefps^(23^) +\>>"%temp%\%file%_avs_temp1.txt"
- shift
- goto :ok
- )
- sort "%temp%\%file%_avs_temp1.txt" >"%temp%\%file%_avs_temp2.txt"
- set linethis=0
- (for /f "usebackq delims=" %%i in ("%temp%\%file%_avs_temp2.txt") do (
- set /a linethis+=1
- if !linethis! lss !linetotal! (
- echo %%i
- ) else (
- set lastline=%%i
- echo !lastline:~0,-4!
- )
- ))>"%file%_avs.avs"
复制代码
|