cant find file content

Found a bug in "Everything"? report it here
Post Reply
AutoSoft
Posts: 30
Joined: Fri Jun 09, 2023 9:56 am

cant find file content

Post by AutoSoft »

now it's ok,in version 1.5

ext:bas size:1kb..500kb content:"bcd hook" it's ok
content:"StrFormatByteSize Wininet"
can't find file


abc.bas

Code: Select all

StrFormatByteSize asdfasdfad Wininet
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Private Declare Function StrFormatByteSize Lib "shlwapi" Alias _
"StrFormatByteSizeA" (ByVal dw As Long, ByVal pszBuf As String, ByRef _
cchBuf As Long) As String

Private Declare Function InternetOpen Lib "Wininet.dll" _
  Alias "InternetOpenA" (ByVal sAgent As String, _
  ByVal lAccessType As Long, ByVal sProxyName As String, _
Last edited by AutoSoft on Fri Jun 09, 2023 10:53 am, edited 1 time in total.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: cant find file content

Post by void »

Everything will match a literal space.

Please try:

ext:bas size:1kb..500kb content:StrFormatByteSize content:Wininet



With Everything 1.5:

ext:bas size:1kb..500kb content:<StrFormatByteSize Wininet>
AutoSoft
Posts: 30
Joined: Fri Jun 09, 2023 9:56 am

Re: cant find file content

Post by AutoSoft »

a multi-level search function should be added to put the last search result (all searched files in the database or save the shortcut to a new directory)
search again and add new conditions to the previous one.

for example, now search for the content of the file, a keyword is no problem. 2 keywords are wrong.
then on the results of this search, search for the second keyword.

or search 2:
n conditions + search file content: including a
n conditions + search file content: including b
comparing the file lists of the two results, the same file name indicates that two keywords were found. it's just that the search time will become twice as long, and at the same time, you have to program and write code to compare whether the file names of the two search results are the same.
AutoSoft
Posts: 30
Joined: Fri Jun 09, 2023 9:56 am

Re: cant find file content

Post by AutoSoft »

void wrote: Fri Jun 09, 2023 10:04 am Everything will match a literal space.

Please try:

ext:bas size:1kb..500kb content:StrFormatByteSize content:Wininet

With Everything 1.5:

ext:bas size:1kb..500kb content:<StrFormatByteSize Wininet>
yes ,it's ok.what about this?
[bgcolor=]ext:bas size:1kb..500kb content:StrFormatByteSize*Wininet

the advanced search page is too long, and you need to press the scroll bar to turn pages up and down (there are 3 pages of content). it would be better if it were made into tabs.
if you search for multiple file formats, it will automatically prompt: txt;ini, which is convenient, and new users do not know that they need to be separated by " ; ".
for example, if you want to search for files that contain text, how to satisfy both conditions, and how to choose one of the two conditions, there are no examples:
for example:
content: str1 and str2
content: str1 or str2
AutoSoft
Posts: 30
Joined: Fri Jun 09, 2023 9:56 am

Re: cant find file content

Post by AutoSoft »

EyText = "ext:bas size:1kb..500kb content:StrFormatByteSize content:Wininet"

Call Everything_SetSearchW(StrPtr(EyText))

EyText2 = "ext:bas size:1kb..500kb content:StrFormatByteSize"
Everything_SetSearchW2(EyText2)

it would be nice if you could add a new search condition to the list of previous result files.
it may be too difficult to modify the entire search tool exe, and it may be easier to modify the sdk dll.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: cant find file content

Post by void »

Everything 1.5 has the following:

ext:bas size:1kb..500kb wildcards:content:*StrFormatByteSize*Wininet*

(without the wildcards: search modifier, Everything will match a literal *)



Regular expressions are also supported:
ext:bas size:1kb..500kb regex:content:StrFormatByteSize.*Wininet
AutoSoft
Posts: 30
Joined: Fri Jun 09, 2023 9:56 am

Re: cant find file content

Post by AutoSoft »

the service of your company/organization is so good, i just asked a question and someone helped me reply, like microsoft edge webview2 sdk, github i raised bugs and suggestions, 2 years before someone replied to me that there are no plans to improve this problem.

it would be great if you could develop a tool that automatically backs up. at the same time, it provides sdks for easy programming use, such as python, excel vba, vbs, vba.
now the internet is terrible, viruses, extortionist groups, hard drives can also fail.
so search out the files, which are the most important and which are the latest updates. it is then automatically backed up to multiple web servers, which is a valuable piece of software.
when uploading, it can be specified to be encrypted with zip, which is more convenient.
for programming employees or software companies, only files in specified formats are backed up, and the server takes up little capacity and short backup times.

an activex.dll (com object) should be added so that vbs can be searched as well. edge webview2 uses the webview2load .dll to create a web page using standard dll apis.
then return the object to different development programs, so that you don't need to register the com dll to use, of course, registering a com dll is also a good way.
AutoSoft
Posts: 30
Joined: Fri Jun 09, 2023 9:56 am

Re: cant find file content

Post by AutoSoft »

version 1.5 is very good,thank you very much.
this method does not work, you can only search for files with the text on the same line.
ext:bas size:1kb..500kb regex:content:*StrFormatByteSize.*Wininet*

it's very good:
ext:bas size:1kb..500kb content:<StrFormatByteSize Wininet>

some old files can be searched, and the files i just created, saved in utf8 and ansi 2 formats, cannot be searched, nor can the forced reindex.
now it's ok,i need use :0kb..500kb
Last edited by AutoSoft on Fri Jun 09, 2023 11:01 am, edited 1 time in total.
AutoSoft
Posts: 30
Joined: Fri Jun 09, 2023 9:56 am

Re: cant find file content

Post by AutoSoft »

ext:bas size:0kb..500kb content:<StrFormatByteSize Wininet>

ext:bas size:0kb-500kb content:<StrFormatByteSize Wininet>

USE 0KB-500KB,Such grammar or conditional formatting is easy to understand, and it is also convenient to write such search conditions by hand.
AutoSoft
Posts: 30
Joined: Fri Jun 09, 2023 9:56 am

Re: cant find file content

Post by AutoSoft »

Everything32.dll,maybe not support 1.5 version?
the date is 2022-4-7

Search Err:Please check Everything Is Running
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: cant find file content

Post by void »

Consider these size searches:
size:1..500kb
-or-
size:<=500kb



Please make sure Everything 1.4 is not running and disable the alpha instance:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    alpha
  • Select alpha_instance.
  • Set the value to: false
  • Click OK.
  • Exit Everything (File -> Exit)
  • Restart Everything.
alpha_instance
AutoSoft
Posts: 30
Joined: Fri Jun 09, 2023 9:56 am

Re: cant find file content

Post by AutoSoft »

thank you very much,it's ok

Public Declare Function Everything_QueryW Lib "Everything32.dll" (ByVal bWait As Long) As Long

dll api for searching files, stuck in my program process. if the dll can be searched with multiple threads, the current api uses events until the search is completed, so that my main program cannot respond to events such as drag or mouse.
like this: winhttprequest>> waitforresponse ,for download htm or zip file.
https://learn.microsoft.com/zh-cn/windo ... dfrom=msdn

the waitforresponse method waits for the asynchronous send method to complete (with an optional timeout value in seconds).
hresult waitforresponse(
[in, optional] variant timeout,
[out, retval] variant_bool *succeeded
);

can be used

Code: Select all

SetWaitableTimer+MsgWaitForMultipleObjects
If SetWaitableTimer(JshTimer, CCur(-Milliseconds)) Then 
           Do While MsgWaitForMultipleObjects(1&, JshTimer, FAL_SE, INFINITE, QS_ALLINPUT) And NoData  '从1变成0就结束了
                DoEvents
          Loop
end if
yesterday i researched someone else's dll calling microsoft's edge webview2 browser, and he was all synchronous and stuck in the window.
create a wb, open the url, and add an 8-second delay. if it fails or the website is stuck, the program also gets stuck.
i created 2 web objects at the same time, and it turned out to take 16 seconds to complete.
later, it was found that these two apis had to add parameter 0 to "call asynchronously", so that basically 1 second was completed, and the creation of 3 5 browser controls was estimated to be about 1 second.
Post Reply