From ddc95ccbab40b218744eac6aed6ddd0256a45474 Mon Sep 17 00:00:00 2001 From: doyle Date: Mon, 1 Aug 2022 15:15:44 +1000 Subject: [PATCH] windows stuff --- win_helpers.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win_helpers.bat b/win_helpers.bat index d0db705..e859866 100644 --- a/win_helpers.bat +++ b/win_helpers.bat @@ -1,6 +1,6 @@ @echo off setlocal EnableDelayedExpansion -REM Win Helpers - Version 4 +REM Win Helpers - Version 5 call %* goto exit @@ -73,7 +73,7 @@ if not exist "!file!" ( ) REM Calculate hash -for /F "tokens=2 delims= " %%c in ('powershell -NoLogo -NoProfile -NonInteractive Get-FileHash -algorithm !algorithm! \"!file!\" ') do ( set "actual=%%c" ) +for /F %%c in ('powershell -NoLogo -NoProfile -NonInteractive "Get-FileHash -algorithm !algorithm! \"!file!\" | Select-Object -ExpandProperty Hash "') do ( set "actual=%%c" ) REM Verify Hash if /I "!expected!" neq "!actual!" (