(view source code of win3264.bat as plain text)
@ECHO OFF
IF NOT "%OS%"=="Windows_NT" GOTO Syntax
IF "%~1"=="" GOTO Run
:Syntax
ECHO.
ECHO Win3264.bat, Version 1.00 for Windows NT 4 and later
ECHO Check if Windows is a 32 or 64-bits version
ECHO.
ECHO Usage: WIN3264
ECHO.
ECHO Returns: The result will be displayed on screen, and a return
ECHO code ("errorlevel") of 32 or 64 will be returned
ECHO.
ECHO Written by Rob van der Woude
ECHO http://www.robvanderwoude.com
ECHO.
ECHO.
:Run
IF DEFINED ProgramFiles(x86) (
FOR /F "tokens=1 delims=[" %%A IN ('VER') DO ECHO %%A^(64-bits^)
EXIT /B 64
) ELSE (
FOR /F "tokens=1 delims=[" %%A IN ('VER') DO ECHO %%A^(32-bits^)
EXIT /B 32
)
page last modified: 2024-04-16; loaded in 0.0047 seconds