Forum Discussion

daks's avatar
daks
New Contributor
5 years ago

How to check if file exists in system32 folder on 64bit Windows

Hi

 

When I want to check if file exits on system32 folder in 64bit Windows, TestComplete always returns false even if file does exist.

When printer driver is installed, some driver files are copied also to system32 folder and I want to check if file was really copied there. How to do this on 64 bit Windows?

 

Regars

  • Found a solution.

    aqFileSystem.Exists("c:\Windows\System32\PROUnstl.exe") returns false in 64bit Windows.

    aqFileSystem.Exists("c:\Windows\Sysnative\PROUnstl.exe") returns true in 64bit Windows.

  • daks's avatar
    daks
    New Contributor

    Found a solution.

    aqFileSystem.Exists("c:\Windows\System32\PROUnstl.exe") returns false in 64bit Windows.

    aqFileSystem.Exists("c:\Windows\Sysnative\PROUnstl.exe") returns true in 64bit Windows.

    • sonya_m's avatar
      sonya_m
      SmartBear Alumni (Retired)

      Thank you so much for following up on this thread with a solution! This is very much appreciated.