Jump to content

Program start from system32 fails.


ongoro
 Share

Recommended Posts

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 regards
Thomas

Link to comment
Share on other sites

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 --

 

Link to comment
Share on other sites

  • Developers
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...