troubleshooting Question

Do you have experts in the field of AutoIt coding?

Avatar of DORON ZUR
DORON ZURFlag for Israel asked on
Scripting Languages
25 Comments4 Solutions529 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
it_saige
Developer
Join our community to see this answer!
Unlock 4 Answers and 25 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 25 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros