기본 콘텐츠로 건너뛰기

Bat 파일에서 64bit , 32bit 검사하기

test.bat:
@echo off
if defined ProgramFiles(x86) (
@echo yes
@echo Some 64-bit work
) else (
@echo no
@echo Some 32-bit work
)
The "ProgramFiles(x86)" is an environment variable automatically defined by cmd.exe (both 32-bit and 64-bit versions) on Windows 64-bit machines only.

댓글