diff --git a/compile.bat b/compile.bat
index c45ac210f0969a67af76b21fdc116e53f388dbe2..ac1bb770ee1a70e6a490379eecd9b98d1b7111da 100644
--- a/compile.bat
+++ b/compile.bat
@@ -5,8 +5,6 @@
 pushd %~dp0
 
 :: See if we can find a git installation
-setlocal enabledelayedexpansion
-
 set GITFOUND=no
 for %%k in (HKCU HKLM) do (
 	for %%w in (\ \Wow6432Node\) do (
diff --git a/compile_debug+sanityCheck.bat b/compile_debug+sanityCheck.bat
index 0eb2efb2b96238402e7b1cbc25e8ed66ec66ccd0..6091542f890e9d59ef9ba4932c14d7fd3cb985ee 100644
--- a/compile_debug+sanityCheck.bat
+++ b/compile_debug+sanityCheck.bat
@@ -5,8 +5,6 @@
 pushd %~dp0
 
 :: See if we can find a git installation
-setlocal enabledelayedexpansion
-
 set GITFOUND=no
 for %%k in (HKCU HKLM) do (
 	for %%w in (\ \Wow6432Node\) do (