Guest User

Untitled

a guest
Dec 9th, 2025
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo OFF
  2.  
  3. :FULLPATH
  4. set /P "FOLDER=type the full folder address: "
  5.  
  6. REM auto remove all quotes
  7. set FOLDER=%FOLDER:"=%
  8. set FOLDER=%FOLDER:'=%
  9. set FOLDER=%FOLDER:`=%
  10.  
  11. if NOT EXIST "%FOLDER%" (
  12.     echo. && echo ["%FOLDER%"] was not found!
  13.     echo. && echo pls, type again!
  14.     TIMEOUT /NOBREAK /T 4
  15.     cls
  16.     goto :FULLPATH
  17. ) ELSE (
  18.     echo. && echo folder found: ["%FOLDER%"] && echo.
  19. )
  20.  
  21. REM it will rename all files: *.*
  22. echo generating the renaming script: "02-check-first-renamer.cmd" [pls, wait]
  23. echo @echo ON > 02-check-first-renamer.cmd
  24. for /R "%FOLDER%" %%F IN (*.*) DO (
  25.     call :OUTOFTHELOOP "%%F"
  26. )
  27. echo timeout /NOBREAK /T 8 >> 02-check-first-renamer.cmd
  28. echo exit /B >> 02-check-first-renamer.cmd
  29. echo.
  30. echo done! && echo. && echo read the file "02-check-first-renamer.cmd" _o/
  31. echo.
  32.  
  33. goto END
  34.  
  35. :OUTOFTHELOOP
  36. echo file found: %1
  37. REM you can try to change the "hasher-engine" file
  38. for /F "usebackq delims==" %%C IN (`01-hasher-engine.cmd %1`) DO (
  39.     echo move /Y %1 "%~d1%~p1%~n1 [%%C]%~x1" >> 02-check-first-renamer.cmd
  40. )
  41. goto :EOF
  42.  
  43. :END
  44. timeout /NOBREAK /T 32
  45. exit /B
  46.  
  47. REM file: 00-rename-hasher.cmd
  48.  
Advertisement
Add Comment
Please, Sign In to add comment