From 6889755330701c7ba33e0852b3f046c3f9e29a5b Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Wed, 25 Oct 2023 12:07:40 -0400 Subject: [PATCH] Fix sigcheck batch file not changing the working directory --- dotfiles/bin/file-sigcheck.bat | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dotfiles/bin/file-sigcheck.bat b/dotfiles/bin/file-sigcheck.bat index a586c73..b29564b 100644 --- a/dotfiles/bin/file-sigcheck.bat +++ b/dotfiles/bin/file-sigcheck.bat @@ -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" )