Guest User

Untitled

a guest
Jan 11th, 2016
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. @echo off
  2. set rarpath=C:\Program Files\WinRAR\rar.exe
  3. set sha1path=C:\sha1sum.exe
  4. set Szippath=C:\Program Files\7-Zip\7z.exe
  5. ::Place this batch file in the same folder as your .rar files
  6. ::Files will be extracted into this same folder
  7. ::Sha1 will be created
  8. ::All rars and the sfv will be deleted
  9.  
  10. :EXTRACT WINRAR
  11. if exist *.rar (
  12. "%rarpath%" e *.rar
  13. ) else (
  14. for %%d in ("%cd%") do echo No .rar files were found in "%%~nd".
  15. )
  16.  
  17. :CREATE .SHA1
  18. if exist *.mkv (
  19. "%sha1path%" sha1sum *.mkv > checksums.sha1
  20. ) else (
  21. for %%d in ("%cd%") do echo No .mkv files were found in "%%~nd".
  22. )
  23.  
  24. :DELETE .MKV
  25. if exist *.mkv (
  26. DEL *.mkv
  27. ) else (
  28. for %%d in ("%cd%") do echo No .mkv files were found in "%%~nd".
  29. )
  30.  
  31. :EXTRACT 7ZIP
  32. if exist *.rar (
  33. "%Szippath%" e *.rar
  34. ) else (
  35. for %%d in ("%cd%") do echo No .rar files were found in "%%~nd".
  36. )
  37.  
  38. :CHECK .SHA1
  39. if exist *.sha1 (
  40. rundll32 %WinDir%\System32\ShellExt\HashCheck.dll HashVerify_RunDLL checksums.sha1
  41. ) else (
  42. for %%d in ("%cd%") do echo No .sha1 files were found in "%%~nd".
  43. )
  44.  
  45. :CLEAN UP RARS
  46. if exist *.r* (
  47. DEL *.r*
  48. ) else (
  49. for %%d in ("%cd%") do echo No rars to delete in "%%~nd".
  50. )
  51.  
  52. :CLEAN UP SFV
  53. if exist *.sfv (
  54. DEL *.sfv
  55. ) else (
  56. for %%d in ("%cd%") do echo No .sfv to delete in "%%~nd".
  57. )
  58.  
  59. echo DONE :)
  60. pause > nul
Advertisement
Add Comment
Please, Sign In to add comment