if /i "%PROCESSOR_IDENTIFIER:~0,3%"=="X86" (echo x86) ELSE echo x64 转载于:https://blog.51cto.com/venglu/1185130