Find Files in separate process doesn't search in AppData

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Find Files in separate process doesn't search in AppData

Post by *Sektor »

I wanted to find Microsoft Word's Normal.dotm template file (full path to is: c:\Users\<USER_NAME>\AppData\Roaming\Microsoft\Templates\Normal.dotm)

I decided to search in separate process with the following command %COMMANDER_EXE% /S=F using following parameters:
1) Search for: Normal
2) Search in: C:\Users\<USER_NAME>\

However, file was not found.

Then I used in-process Alt+F7 search - and file was found.
License #299429
There is no knowledge that is not power
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Appdata is a hidden folder. Standalone search may not be able to see it.
Author of Total Commander
https://www.ghisler.com
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Post by *Sektor »

@ghisler
So, there's no chance to search in hidden folders? :(
License #299429
There is no knowledge that is not power
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

I can't confirm:

- AppData is NOT hidden - at least here, on Windows 7

- I tried both with 32-bit and 64-bit TC 9.20 Beta 5, and both of them can find files in AppData, regardless of file/folder attributes, even when searching by using a separate process.

So this is probably some other problem.

Regards
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Can't confirm this bug, regardless of TC version. If the display of hidden and system files is enabled, the file normal.dot is found, in normal search as well as in separate search. If I disable the display of hidden and/or system files, the file is not found, regardless of search method.

[EDIT2]
AppData is hidden and %AppData%\Microsoft is a system directory, so the display of both hidden and system is required to find this file.
[/EDIT2]

[EDIT]
@MarcinW:
AppData is hidden on (my) Windows 7. Take a look at the %SystemRoot%\Users\Default directory.
[/EDIT]

Regards
Dalai
Last edited by Dalai on 2018-06-01, 15:56 UTC, edited 3 times in total.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

AppData IS hidden on Windows 10.
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

%SystemRoot%\Users\Default = c:\Users\Default -> is hidden here

%AppData% = c:\Users\X\AppData\Roaming -> is NOT hidden here (but c:\Users\X\AppData is hidden)


But the real question is: is it possible, that the normal search can find a file, and a standalone search cannot find it? I could not reproduce this.

Regards
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

MarcinW wrote:%AppData% = c:\Users\X\AppData\Roaming -> is NOT hidden here (but c:\Users\X\AppData is hidden)
That's confirms what I said. You probably thought that Ghisler meant %AppData% when he said Appdata, but AppData is not the same as %AppData% (as you pointed out yourself).
But the real question is: is it possible, that the normal search can find a file, and a standalone search cannot find it?
Yep, that's the point.
I could not reproduce this.
Neither did I. One reason could be that the command used to start the separate search uses a different wincmd.ini than the regular search, i.e. hidden (and system) files shown only in the latter.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have tested it now - although AppData is hidden, TC finds the file also when using standalone search.

The only problem I can see is when TC itself and the standalone search would use separate settings files, and hidden files would be disabled in the one used by the standalone search.
Author of Total Commander
https://www.ghisler.com
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Post by *Sektor »

@ghisler
I've tested once again:
If system/hidden files aren't shown, then neither in-process nor out-of-process search doesn't find a file. If they're shown, both searches find a file.
License #299429
There is no knowledge that is not power
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, so it's not a bug. I will move this thread to "will not be changed" then.
Author of Total Commander
https://www.ghisler.com
Post Reply