Add batch scripts for getting file checksum

This commit is contained in:
2023-10-25 12:26:12 -04:00
parent 6889755330
commit b399a9e2c9
4 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
@echo off
if exist %1\* (
echo Run on a file
) else (
if exist "%~1_checksum-sha1.txt" (
del "%~1_checksum-sha1.txt"
)
certutil.exe -hashfile "%~1" SHA1 > "%~1_checksum-sha1.txt"
start notepad "%~1_checksum-sha1.txt"
)