Page 1 of 1
Hidden folders visible in minitree after quicksearch
Posted: 22 Jan 2018 02:44
by zakhar
After running a script like the following
Code: Select all
$location3 = "C:\";
$qs3 = quicksearch("/dn","$location3","|");
loadtree "$qs3";
hidden system folders (in the root directory, such as "$Recycle.Bin, ProgramData, Recovery,
System Volume Information") became visible in the loaded minitree -
- even if "View\Schow Items\Show Hidden Files and Folder" is not set to show the hidden items.
Can the showing of hidden folders in the mini tree be prevented?
How?
Thank you for your answer!
[Upd1: Win7, XY18.60.0200 are running.]
Re: Hidden folders visible in minitree after quicksearch
Posted: 22 Jan 2018 07:35
by admin
This is caused by this change:
Code: Select all
v18.60.0003 - 2017-12-17 16:05
* SC quicksearch: Now it ignores any of the following settings that may hide
stuff from the list. They cannot hide anything from SC quicksearch anymore:
- Configuration | Tree and List | Items in Tree and List | Show hidden files and folders
- Configuration | Tree and List | Items in Tree and List | Show system files and folders
- Configuration | Tree and List | Items in Tree and List | Hide protected operating system files
- Configuration | Tree and List | Items in Tree and List | Show junctions
- View | Show Items | Show Folders in List
I might add a flag to quicksearch to make it NOT ignore those settings. Hm?
Re: Hidden folders visible in minitree after quicksearch
Posted: 22 Jan 2018 07:54
by jupe
admin wrote:I might add a flag to quicksearch to make it NOT ignore those settings. Hm
Yeah I think that would be good, or an attributes flag to set what you want.
In the meantime I made up a quick workaround for the OP, it's most definitely not the correct way to do it, but it should work if you are interested:
Code: Select all
$location3 = "C:\";
$qs3 = quicksearch("/dn","$location3","|");
$results = "";
foreach($item, $qs3, "|") {
if (property("attrib", $item) UnLike "*H*") {
$results = $results . $item . "|";
}
}
loadtree $results;
Re: Hidden folders visible in minitree after quicksearch
Posted: 22 Jan 2018 08:15
by admin
BTW, I just looked up the definition of quicksearch: "It works 100% identical to GUI Quick Search apart from not affecting the GUI".
So I should not have done the above mentioned change by default but bind it to a flag, e.g. "a" (show all).
Re: Hidden folders visible in minitree after quicksearch
Posted: 22 Jan 2018 16:41
by zakhar
I might add a flag to quicksearch to make it NOT ignore those settings. Hm?
Yes, I think, adding a switch under "Search Pattern Switches"
(and probably a short explanation - why this switch is needed with reference to "v18.60.0003 - 2017-12-17 16:05")
would be the best choice -
- I have first of all tried to find a solution there, under "Search Pattern Switches".
Re: Hidden folders visible in minitree after quicksearch
Posted: 22 Jan 2018 16:47
by admin
Well, I added a flag to the quicksearch command, not a switch to GUI Quick Search (although that would be an idea as well).
But see discussion here:
viewtopic.php?p=155537#p155537
Re: Hidden folders visible in minitree after quicksearch
Posted: 22 Jan 2018 17:09
by zakhar
Well, I added a flag to the quicksearch command, not a switch to GUI Quick Search (although that would be an idea as well).
Yes! I tried out "v18.60.0208 - 2018-01-22 10:06".
It works as desired now!
Thank you!