Forum Replies Created

  • Markus Mustermann

    April 2, 2011 at 1:18 pm in reply to: Finding missing frames in a sequence.

    a friend of mine wrote me a batch script for windows that identifies missing files (frames) in sequence and prints the frame numbers in a txt file.
    it’s ideal for long sequences – however it only checks if the files exist – so broken files will not be reported.

    here ist the script: (copy paste in text document and rename missing.BAT)
    this script checkes the folder: c:\folder0\”folder number one”\
    for missing files named: FileName[#####].png
    —–
    @echo off

    set startframe=3383
    set endframe=6425
    set leading=0000
    set folder=c:\folder0\”folder number one”\
    set filename=FileName
    set filetype=.png

    set ZAEHLER=%startframe%
    set neuerChunk=0

    :start
    if “%ZAEHLER%”==”%startframe%” echo MISSING %filetype% FILES in %folder% – start:%startframe% end:%endframe% list:>> missing_frames.txt
    if “%ZAEHLER%”==”%endframe%” goto end
    set z=%leading%%ZAEHLER%
    set z=%z:~-5%

    if not exist %folder%%filename%%z%%filetype% (
    if “%neuerChunk%”==”1” (
    echo ##### >> missing_frames.txt
    set neuerChunk=0
    )
    echo %z% >> missing_frames.txt
    ) ELSE (
    set neuerChunk=1
    )
    set /a ZAEHLER = %ZAEHLER% + 1
    goto start

    :end
    echo end of list >> missing_frames.txt

    echo check missing_frames.txt
    —-

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy