We help IT Professionals succeed at work.
Get Started

Do you have experts in the field of AutoIt coding?

DORON ZUR
DORON ZUR asked
on
519 Views
Last Modified: 2016-08-19
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.
Comment
Watch Question
Joe WinogradDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2018
Commented:
This problem has been solved!
Unlock 4 Answers and 25 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE