错误提示的全部内容>"E:\Program Files (x86)\autoit3\SciTe\ACNWrapper\ACNWrapper.exe" /run /ErrorStdOut /in "E:\Program Files (x86)\autoit3\Examples\WinAPIEx\_WinAPI_GetDriveNumber.au3" /autoit3dir "E:\Program Files (x86)\autoit3" /UserParams
+>22:42:03 开始执行 ACNWrapper v.1.0.1.7
+> ============================================
+>执行环境:
+> CPU构架: X64
+> 系统构架: X64
+> 系统语言: 0804
+> 键盘布局: 00000804
+> 内存总量: 6142MB
+> 内存剩余: 3643MB
+> 操作系统: WIN_7/Service Pack 1
+> AU3版本: 3.3.9.4
+> ============================================
>运行 AU3Check (3.3.9.5) 开始目录:E:\Program Files (x86)\autoit3
+>22:42:03 AU3Check 完成[CODE]:0
>运行:(3.3.9.4):E:\Program Files (x86)\autoit3\autoit3_x64.exe "E:\Program Files (x86)\autoit3\Examples\WinAPIEx\_WinAPI_GetDriveNumber.au3"
"E:\Program Files (x86)\autoit3\Examples\WinAPIEx\_WinAPI_GetDriveNumber.au3" (9) : ==> ???????????????????.:
$List[$i] = ''
^ ERROR
->22:42:03 AutoIT3.exe 完成:[CODE]:1
+>22:42:05 ACNWrapper 完成..
>退出代码: 1 运行时间: 2.425 秒
示例的全部内容#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Data, $Drive = DriveGetDrive('FIXED')
Global $List[10]
For $i = 0 To UBound($Drive) - 1
$List[$i] = ''
Next
If IsArray($Drive) Then
For $i = 1 To $Drive[0]
$Data = _WinAPI_GetDriveNumber($Drive[$i])
If IsArray($Data) Then
$List[$Data[1]] &= StringUpper($Drive[$i]) & ' '
EndIf
Next
EndIf
For $i = 0 To UBound($Drive) - 1
If $List[$i] Then
ConsoleWrite('Drive' & $i & ' => ' & $List[$i] & @CR)
EndIf
Next
|