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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors