Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.28 KB | None | 0 0
  1. @echo off
  2. REM This batch file when ran will find and delete
  3. REM all .srr, .nfo, and .tbn files in the specified folder
  4. REM and subfolders.  If you dont want to delete the .srr
  5. REM just comment them out with REM, or delete the entire section
  6. REM remember this has to be run on the host pc, i run it
  7. REM from on my htpc server using telnet or ssh on my laptop
  8.  
  9. REM Set all your correct paths here, best to use absolute.
  10. REM you dont need a log file, but i prefer it.
  11.  
  12. REM example set logpath=C:\Users\JohnSmith\Files\Log.txt
  13. REM example set drive=D:
  14. REM If you dont have multiple drives then REM/delete the drive line
  15. REM example set tvpath=D:\Downloads\TV\
  16.  
  17. set logpath=
  18. set drive=
  19. set tvpath=
  20.  
  21.  
  22. echo ************************************* >  %logpath%
  23. echo Jordon's .tbn, .nfo and .srr deleter! >> %logpath%
  24. echo ************************************* >> %logpath%
  25. echo. >>                                      %logpath%
  26.  
  27. REM delete if not needed
  28. %drive%
  29.  
  30. cd %tvpath%
  31.  
  32. echo Starting to delete all .srr files! >>    %logpath%
  33. echo ********************************** >>    %logpath%
  34. echo. >>                                      %logpath%
  35. del /s *.srr >>                               %logpath%
  36. echo. >>                                      %logpath%
  37. echo These .srr files were deleted! >>        %logpath%
  38. echo ****************************** >>        %logpath%
  39.  
  40. echo. >>                                      %logpath%
  41. echo Starting to delete all .tbn files! >>    %logpath%
  42. echo ********************************** >>    %logpath%
  43. echo. >>                                      %logpath%
  44. del /s *.tbn >>                               %logpath%
  45.  
  46. echo. >>                                      %logpath%
  47. echo These .tbn files were deleted! >>        %logpath%
  48. echo ****************************** >>        %logpath%
  49. echo. >>                                      %logpath%
  50. echo Starting to delete all .nfo files! >>    %logpath%
  51. echo ********************************** >>    %logpath%
  52. del /s *.nfo >>                               %logpath%
  53. echo These .nfo files were deleted! >>        %logpath%
  54. echo ****************************** >>        %logpath%
  55. echo End of log >>                            %logpath%
  56. echo ********** >>                            %logpath%
  57. REM Thanks for using.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement