cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
New Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
New Contributor

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

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.

View solution in original post

2 REPLIES 2
Highlighted
New Contributor

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

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.

View solution in original post

Highlighted
Community Manager

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

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


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors