12 lines
227 B
Batchfile
12 lines
227 B
Batchfile
@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"
|
|
)
|