Difference between script and info panel

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zakhar
Posts: 179
Joined: 08 Sep 2010 21:13

Difference between script and info panel

Post by zakhar »

Hello, dear XYplorer Community!

The following searches return different results:
in the script:

Code: Select all

quicksearch("(*-2021.10* OR *-e.-??-??10.21) AND (*-A-* OR *-E-*) /d","C:\Location\");
(In the script "2021.10" and "10.21" are enclosed in variables $Date1 and $Date2.)
in the info pannel (in the same location):

Code: Select all

(*-2021.10* OR *-e.-##-##.10.21) AND (*-A-* OR *-E-*) /d
The result of the info panel search is right.
The result of the script is wrong: it contains folders (but not many), that do not match any patterns.
What is wrong in the script?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Difference between script and info panel

Post by highend »

Then show the folders that are found but do not match the patterns?
*-e.-??-??10.21 != *-e.-##-##.10.21
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67322
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Difference between script and info panel

Post by admin »

The patterns differ, so it's not that surprising that the results differ.

zakhar
Posts: 179
Joined: 08 Sep 2010 21:13

Re: Difference between script and info panel

Post by zakhar »

The problem is, that the script result returns folders (except the right ones),
which do not contain (even in their paths) "2021.10", ".10.21", "-A-" or "-E-" at all - that is very strange.
There are 19 right folders and 4 wrong folders in the actual script search result,
more then 10.000 folders were filtered.
(I can not disclose the paths and names of the folders due to privacy reasons.
It is clear, that this can obstruct helping to solve this problem.)

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Difference between script and info panel

Post by highend »

My crystal ball has a small crack on the surface, I'm out
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67322
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Difference between script and info panel

Post by admin »

Funny, mine too.

zakhar
Posts: 179
Joined: 08 Sep 2010 21:13

Re: Difference between script and info panel

Post by zakhar »

Excuse me! It was my bad! :oops:
(Normal script search results were normally passed to the paperfolder.
A script part, which followed afterwards, added incorrectly
some folders to the search results of the script.)
Last edited by zakhar on 08 Oct 2021 14:50, edited 1 time in total.

admin
Site Admin
Posts: 67322
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Difference between script and info panel

Post by admin »

:beer: cheers!

Gandolf

Re: Difference between script and info panel

Post by Gandolf »

I have a Gypsy crystal ball, given to me as a wedding present by Irish Gipsy friends many years ago. I must never touch it (I don't have Gypsy blood), but I will look into it and see if I can help!
To see the attached files, you need to log into the forum.

Post Reply