Hirdetés

Új hozzászólás Aktív témák

  • Drag77

    senior tag

    válasz #54715584 #768 üzenetére

    Szia!

    Pl: ha csinálsz egy bat filet az alábbi tartalommal:
    @echo off
    echo The following files were renamed:
    for /F %%i in ('dir /b *.avi ^| findstr /i "S[0-9]*E[0-9]* [0-9][0-9][0-9] [0-9]x[0-9][0-9]"') do (
    echo %%i >> file
    for /F "tokens=1-3 delims=." %%a in ('findstr /i "S[0-9][0-9]E[0-9][0-9] [0-9][0-9][0-9] [0-9]x[0-9][0-9]" "file"') do (
    echo %%a >> temp
    echo %%b >> temp
    echo %%c >> temp
    echo %%d >> temp
    echo %%e >> temp
    echo %%f >> temp
    echo %%g >> temp
    for /F %%m in ('findstr /i "S[0-9][0-9]E[0-9][0-9] [0-9][0-9][0-9] [0-9]x[0-9][0-9]" "temp"') do (
    for /F %%q in ('dir /b *.srt ^| findstr /i "%%m"') do (
    rename "%%~q" "%%~ni.srt"
    echo ------------------------------------------------------------------------------- "%%~q" - "%%~ni.srt"

    )
    )
    )
    del file
    del temp
    )
    pause

    üdv. Drag

    [ Szerkesztve ]

    http://draginet.hu , MCSA, MCSE, UEWA, Microsoft 365 Certified: Modern Desktop Administrator Associa Microsoft Certified: Windows Server Hybrid Administrator Associatete,

Új hozzászólás Aktív témák