
最準確的64位和32位判斷,前提是不能被垃圾軟件或是病毒更改最后由 /zhqsystem/zhq 于 -7-28 05:45
說明 最后兩個是沒有錯誤時直接用的nclick="copycode($('code0'));">復制代碼
- for /f delims= %%i in ('reg query hklmsystemcontrolset001controlsession managerenvironment /v processor_architecture^|findstr/i reg_') do (
- for /f delims= %%j in ('reg query hklmsystemcontrolset002controlsession managerenvironment /v processor_architecture^|findstr/i reg_') do (
- for /f delims= %%k in ('reg query hklmsystemcurrentcontrolsetcontrolsession managerenvironment /v processor_architecture^|findstr/i reg_') do (
- if /i %%i==%%j if /i %%j==%%k if /i %%k==%%i (
- echo=數值互等執行判斷
- echo=%%i|findstr/i 64>nul2>nul||echo=%%i|findstr/i 86>nul2>nul||(echo=所有的判斷值值錯誤,5秒退出&&ping /n 5 127.1 >nul2>nul&&exit)
- echo=%%j|findstr/i 64>nul2>nul||echo=%%j|findstr/i 86>nul2>nul||(echo=所有的判斷值值錯誤,5秒退出&&ping /n 5 127.1 >nul2>nul&&exit)
- echo=%%k|findstr/i 64>nul2>nul||echo=%%k|findstr/i 86>nul2>nul||(echo=所有的判斷值值錯誤,5秒退出&&ping /n 5 127.1 >nul2>nul&&exit)
- echo=%%i|findstr/i 64>nul2>nul&&(set system_bit=64&echo=當前系統位寬:64位)
- echo=%%i|findstr/i 86>nul2>nul&&(set system_bit=32&echo=當前系統位寬:32位)
- )
- if /i not %%i==%%j (
- echo=錯誤對比 i j
- echo=%%i
- echo=%%j
- echo/
- )
- if /i not %%j==%%k (
- echo=錯誤對比 j k
- echo=%%j
- echo=%%k
- echo/
- )
- if /i not %%k==%%i (
- echo=錯誤對比 k i
- echo=%%k
- echo=%%i
- echo/
- )
- )))
- reg query hklmsystemcontrolset001controlsession managerenvironment /v processor_architecture|findstr/i 64>nul2>nul&&(set system_bit=64&echo=當前系統位寬:64位)
- reg query hklmsystemcontrolset001controlsession managerenvironment /v processor_architecture|findstr/i 86>nul2>nul&&(set system_bit=32&echo=當前系統位寬:32位)

