Guest User

Untitled

a guest
Feb 11th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set hashes=%cd%\hashes.txt
  2. set checksum=%cd%\..\checksum.exe
  3. %checksum% Miranda64.exe > %hashes%
  4. %checksum% Zlib.dll >> %hashes%
  5. call :checksum plugins
  6. call :checksum Icons
  7. call :checksum Icons\Fp_ClientIcons
  8.  
  9. rem put me at the end of script
  10. rem getting checksum for dlls
  11. rem "goto :eof" here to avoid run this subroutine at the end of script, so script will run till this point, and sobroutine will called only where we need it
  12. goto :eof
  13. rem the subroutine itself starts here
  14. :checksum
  15. rem change the dir to first parameter, and remember it
  16. pushd %1
  17. rem now we are here, let's get the hashes for dll
  18. for /F "tokens=1,2 delims= " %%a in ('%checksum% *.dll') do echo %1\%%a %%b >> %hashes%
  19. rem return to the dir, where subroutine was called
  20. popd
  21. rem this is just for the case if another sobroutine will be after this one :)
  22. goto :eof
Add Comment
Please, Sign In to add comment