diff --git a/gibMacOS.bat b/gibMacOS.bat index 04655d9..1a5d918 100644 --- a/gibMacOS.bat +++ b/gibMacOS.bat @@ -1,9 +1,10 @@ @echo off -setlocal enableDelayedExpansion +REM Get our local path before delayed expansion - allows ! in path +set "thisDir=%~dp0" +setlocal enableDelayedExpansion REM Setup initial vars set "script_name=" -set "thisDir=%~dp0" set /a tried=0 set "toask=yes" set "pause_on_error=yes"