danfong wrote:
目前小弟使用的是 W...(恕刪)
抱歉我會錯意了,我給的批次檔是判斷這個作業系統是64位元還是32位元。
想判斷一個執行檔是64位元或是32位元,
下載File for Windows(GNU project) , Linux系統已內建。
http://downloads.sourceforge.net/gnuwin32/file-5.03-setup.exe
下面是幾個範例,
C:\Program Files (x86)\GnuWin32\bin>file winrar-x64-392b1.exe
winrar-x64-392b1.exe: PE32+ executable for MS Windows (GUI)
C:\Program Files (x86)\GnuWin32\bin>file display.exe
display.exe: PE32 executable for MS Windows (GUI) Intel 80386 32-bit
有註明PE32+就是64bit的執行檔
PE32則是32bit的執行檔