【发布时间】:2014-07-06 16:39:23
【问题描述】:
这是我目前的代码:
#include <MsgBoxConstants.au3>
If FileExists(@HomeDrive & "Program Files (x86)") Then
$arc = 64
Else
$arc = 32
EndIf
MsgBox("Hello", "Bit", "The computer that the program is been run on is a " & $arc & "bit one.")
它会说我的电脑是64的时候是32位的。所以我看了一下路径并制作了新代码:
#include <MsgBoxConstants.au3>
If FileExists(@HomeDrive & "Program Files (x86)") Then
$arc = 64
Else
$arc = 32
EndIf
$path = @HomeDrive & "\Program Files (x86)"
MsgBox("Hello", $path, "The computer that the program is been run on is a " & $arc & "bit one.")
这显示了路径,似乎没问题。我哪里错了?
【问题讨论】:
标签: x86 64-bit autoit cpu-architecture