Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM This batch file when ran will find and delete
- REM all .srr, .nfo, and .tbn files in the specified folder
- REM and subfolders. If you dont want to delete the .srr
- REM just comment them out with REM, or delete the entire section
- REM remember this has to be run on the host pc, i run it
- REM from on my htpc server using telnet or ssh on my laptop
- REM Set all your correct paths here, best to use absolute.
- REM you dont need a log file, but i prefer it.
- REM example set logpath=C:\Users\JohnSmith\Files\Log.txt
- REM example set drive=D:
- REM If you dont have multiple drives then REM/delete the drive line
- REM example set tvpath=D:\Downloads\TV\
- set logpath=
- set drive=
- set tvpath=
- echo ************************************* > %logpath%
- echo Jordon's .tbn, .nfo and .srr deleter! >> %logpath%
- echo ************************************* >> %logpath%
- echo. >> %logpath%
- REM delete if not needed
- %drive%
- cd %tvpath%
- echo Starting to delete all .srr files! >> %logpath%
- echo ********************************** >> %logpath%
- echo. >> %logpath%
- del /s *.srr >> %logpath%
- echo. >> %logpath%
- echo These .srr files were deleted! >> %logpath%
- echo ****************************** >> %logpath%
- echo. >> %logpath%
- echo Starting to delete all .tbn files! >> %logpath%
- echo ********************************** >> %logpath%
- echo. >> %logpath%
- del /s *.tbn >> %logpath%
- echo. >> %logpath%
- echo These .tbn files were deleted! >> %logpath%
- echo ****************************** >> %logpath%
- echo. >> %logpath%
- echo Starting to delete all .nfo files! >> %logpath%
- echo ********************************** >> %logpath%
- del /s *.nfo >> %logpath%
- echo These .nfo files were deleted! >> %logpath%
- echo ****************************** >> %logpath%
- echo End of log >> %logpath%
- echo ********** >> %logpath%
- REM Thanks for using.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement