ongoro Posted November 26, 2020 Share Posted November 26, 2020 Hello,when I call a program from C: \ Windows \ System32, I get a ""file not found" if the script was compiled as x86.The script as x64 finds the file without problems.Unfortunately I still need the x86 version, which has to run on both systems. Development system: Windows 10 x64 Is there a way? Script: If FileExists('C:\Windows\System32\ie4uinit.exe') Then MsgBox(0,'file check', 'Executable was found') Else MsgBox(0,'file check', 'Executable was NOT found') EndIf Kind regardsThomas Link to comment Share on other sites More sharing options...
Danp2 Posted November 26, 2020 Share Posted November 26, 2020 From the FileExists help file entry -- Quote If you are running in X86 mode (@AutoItX64 = 0) under a Windows running in X64 mode (@OSArch = "X64") and you want to access @WindowsDir\System32, X64 files will not be found. So you can use @WindowsDir\Sysnative. Good discussion here -- ongoro and Professor_Bernd 2 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ongoro Posted November 27, 2020 Author Share Posted November 27, 2020 (edited) @Danp2 Thanks for the answer. Unfortunately, I did not find the linked post despite searching. The solution with Sysnative works great. Edited November 27, 2020 by ongoro Link to comment Share on other sites More sharing options...
Developers Jos Posted November 27, 2020 Developers Share Posted November 27, 2020 6 hours ago, ongoro said: Unfortunately, I did not find the linked post despite searching. Did you click on it? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now