Hello, do you have xperts in the field of AUTOIT Coding ?
I do not know where to ask this question?
The forum that they run gave me a hostile welcome.
I had to close down my account as I received a very cold
welcome from them ignoring my questions, posting back limited
half-answers and throwing me to their horrible help file, limited with working examples.
Anyway here is the failing code they did Not want to help me with
and instead kept insulting me.
I tried a one file code which could deal with both a 32 bit and a 64 bit version at the same time
but making the clear distinction between the versions.
But the output gave a DOUBLE answer,
i.e. if I checked the 64 bit version the output was:
This is a 32 bit version computer.
This is a 64 bit version computer.
and,
if I checked the 32 bit version the output was:
This is a 32 bit version computer.
This is a 64 bit version computer.
Here is the code (did not work)
-----------------------------------------
#include <MsgBoxConstants.au3>
;Assign the 32 bit version file path to a variable.
Local $sFilePath32 = "C:\Program Files\Windows Sidebar\sidebar.exe"
;Check if file exists.
Local $iFileExists32 = FileExists($sFilePath32)
;Display a message after checking the returned value.
If $iFileExists32 Then
MsgBox($MB_SYSTEMMODAL, "", "This is a 32 bit version computer." & @CRLF & "FileExist returned: " & $iFileExists32)
Else
MsgBox($MB_SYSTEMMODAL, "", "The file doesn't exist." & @CRLF & "FileExist returned: " & $iFileExists32)
EndIf
;Assign the 64 bit version computer file path to a variable.
Local $sFilePath64 = "C:\Program Files (x86)\Windows Sidebar\sidebar.exe"
;Check if file exists.
Local $iFileExists64 = FileExists($sFilePath64)
;Display a message after checking the returned value.
If $iFileExists64 Then
MsgBox($MB_SYSTEMMODAL, "", "This is a 64 bit version computer." & @CRLF & "FileExist returned: " & $iFileExists64)
Else
MsgBox($MB_SYSTEMMODAL, "", "The file doesn't exist." & @CRLF & "FileExist returned: " & $iFileExists64)
EndIf
;-----------------
Thank You For Your Attention. Can You Help Me Please ?
Regards and Thnx.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.