Determining windows architecture
There is an elegant way of finding the OS architecture (32 or 64 bit) by using
wmic OS get OSArchitecture | find /I "64-bit"
if not errorlevel 1 (set FilePath=%FilePath64%
) else (
set FilePath=%FilePath32%
)
ECHO Path to zabbix_agentd.exe: %FilePath%
There is an elegant way of finding the OS architecture (32 or 64 bit) by using
wmic OS get OSArchitecture | find /I "64-bit"
if not errorlevel 1 (set FilePath=%FilePath64%
) else (
set FilePath=%FilePath32%
)
ECHO Path to zabbix_agentd.exe: %FilePath%
Comment