From 9b605ba2821127cc58e386d14f7a4a6b1c23e094 Mon Sep 17 00:00:00 2001 From: sassy Date: Wed, 14 Jan 2015 13:34:41 +0900 Subject: [PATCH] If PROGRAMFILES(x86) is not existed, OS_ARCH is empty, so it is fixed. --- nvmw.bat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nvmw.bat b/nvmw.bat index fb29121..44436aa 100644 --- a/nvmw.bat +++ b/nvmw.bat @@ -8,7 +8,12 @@ if not defined PATH_ORG ( set "PATH_ORG=%PATH%" ) +set IS64=FALSE if exist "%PROGRAMFILES(X86)%" if not "%3" == "x86" ( + set IS64=TRUE +) + +if %IS64% == TRUE ( set OS_ARCH=64 ) else ( set OS_ARCH=32