Fix sigcheck batch file not changing the working directory

This commit is contained in:
Michael Campagnaro 2023-10-25 12:07:40 -04:00
parent 2beccaeeb3
commit 6889755330

View File

@ -1,12 +1,13 @@
@echo off
cd %DEV_TOOLS%\SysinternalsSuite
cd /d %DEV_TOOLS%\SysinternalsSuite
if exist %1\* (
echo Run on a file
) else (
if exist "%~1_Report.txt" (
del "%~1_Report.txt"
if exist "%~1_sigcheck_report.txt" (
del "%~1_sigcheck_report.txt"
)
sigcheck.exe /a "%~1" > "%~1_sigcheck_report.txt"
sigcheck64.exe /a "%~1" > "%~1_sigcheck_report.txt"
start notepad "%~1_sigcheck_report.txt"
)