Does TC search under sysnative?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Does TC search under sysnative?

Post by *Hacker »

Hi *.*,
There is a file (an ICM profile) under c:\windows\sysnative\spool\drivers\color\. When I search for it from c:\windows\ the file is not found. Is this expected behavior?
Windows 7 64-bit, x64DisableRedirection=0 (not set, assuming default).

TIA
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

I'd say yes. Sysnative doesn't exist, it's only virtual. It's not even a proper link, so it's not reported as existing directory by system functions. If TC doesn't have special handling ("hey, I'm searching in Windows directory and this is x64 system, I must not forget to check Sysnative in addition to existing directories"), then the content of this folder is effectively hidden from TC search.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, Hacker.

I can confirm Sob's findings. "Sysnative" is not searched in the scenario which you describe.

The current workaround would be
+ temporarily switching off x64-redirection,
+ performing the search and
+ switching it back on (provided it had been switched on initially).

I wonder whether it would be a good idea if T.C. did this automatically on 64-bit Windows systems? - But it would still not search Sysnative explicitly in this case.

Kind regards,
Karl
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

karlchen wrote:I wonder whether it would be a good idea if T.C. did this automatically on 64-bit Windows systems?
Rather than messing with redirection, it would be easier to just add already mentioned "special handling" for Windows directory.

If all this is true:

- TC is 32bit (taking the future into account :)
- Windows is 64bit
- currently searched directory is Windows directory (%SystemRoot%)
- recursive search is requested

then also "Sysnative" subdirectory should be searched. It's one line of code and I can't think up anything that could go wrong.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3897
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Just keep it simple:
Save a search with "c:\windows;c:\windows\sysnative" and you are done ...
#5767 Personal license
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Thank you all for checking and the suggestions for workarounds.

Christian,
Is this by design?

TIA
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50930
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sysnative is hidden by Windows, so no function in TC really sees this folder. I'm adding it programmatically to the list when listing the Windows folder, that's why you don't see any time stamp for this folder. Since the Windows functions don't report it, the search function cannot see it either (except when you point it to the directory as sqa_wizard suggested).
Author of Total Commander
https://www.ghisler.com
Post Reply