Finding videos with missing funscripts in a folder [Windows]

hi!
A few days ago I posted a few lines of batch script in the chat for listing videos with missing funscripts which seems to be useful to many of you. I thought it would be good to make a thread for it so we can move the discussion here and enable people to find it later. I made an improvement to the script as well. It now also outputs the files that are OK and supports sub-folders.

Script:

@echo off
for /R . %%F in (*.mp4) do (if exist "%%~pnF.funscript" (echo [OK] %%F))
for /R . %%F in (*.mp4) do (if not exist "%%~pnF.funscript" (echo [MISSING] %%F))
pause

Instructions:

  1. Copy the script above
  2. Paste in notepad
  3. Save as a *.bat file to your funscript folder
  4. Run the script as you would a .exe

Example output:

8 Likes

Thank you! Any way to include subfolders? I tried to include /r in the first line like this but than it doesn’t show anything.

for /r %%F in (*.mp4) do (if exist “%%~nF.funscript” (echo [OK] %%F))

1 Like

Hey, you were on the right track, and good point! I’ve included support for subfolders in the original post.

1 Like