Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set hashes=%cd%\hashes.txt
- set checksum=%cd%\..\checksum.exe
- %checksum% Miranda64.exe > %hashes%
- %checksum% Zlib.dll >> %hashes%
- call :checksum plugins
- call :checksum Icons
- call :checksum Icons\Fp_ClientIcons
- rem put me at the end of script
- rem getting checksum for dlls
- 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
- goto :eof
- rem the subroutine itself starts here
- :checksum
- rem change the dir to first parameter, and remember it
- pushd %1
- rem now we are here, let's get the hashes for dll
- for /F "tokens=1,2 delims= " %%a in ('%checksum% *.dll') do echo %1\%%a %%b >> %hashes%
- rem return to the dir, where subroutine was called
- popd
- rem this is just for the case if another sobroutine will be after this one :)
- goto :eof
Add Comment
Please, Sign In to add comment