Page 2 of 2
Re: Search file system like "Everything" app?
Posted: Wed Jun 28, 2023 2:02 am
by Pierre Bellisle
Everything got his speed by indexing and reading $MFT if my memory is right.
About $MFT, you may have a look at
powerbasic code to get MFT filenames . This will give you an idea on how to access it. It should be not to hard to convert to purebaba. Here it is in action...
A more traditionnal way is to use the EnumDirTree() and EnumDirTreeCallBack() api.
EnumDirTree() is the fastest Windows search api I think.
This one return only filenames. I build an array with these filenames.
Then I get GetSystemInfo(SystemInfo) to get the count number of .dwNumberOfProcessors.
I start a thread for each processor. The threads job is to search in files... some text, the file time, the file size, etc, etc...
When a thread get a file, it mark is as done to make sure other threads will ignore this file.
GetFileTime(), GetFileAttributes(), GetFileSize()...
I don't build any index, so it is slower than Everything.
Still, it compares easily with UltraSearch and others...
Plus, it does exactly what I want, and this I like !
-
Re: Search file system like "Everything" app?
Posted: Mon Feb 10, 2025 7:58 am
by Randy Walker
BarryG wrote: Mon May 02, 2022 6:38 am
Actually, I just realized "Everything" doesn't let you search by file size or date, so it's not really suitable for my needs after all. Sorry!
Hi BarryG,
Everything does search by date and/or filesize. Open "Everything", Click [Help]>[search syntax] for details. (created, accessed or modified)
OHHHhhh, unless you are referring to command line options. Then you're SOL. Never messed with command line Everything.
Re: Search file system like "Everything" app?
Posted: Mon Feb 10, 2025 8:42 am
by BarryG
Yes, I was wanting to use "Everything" with RunProgram(). I will look into it anyway.
Re: Search file system like "Everything" app?
Posted: Mon Feb 10, 2025 9:27 am
by Randy Walker
BarryG wrote: Mon Feb 10, 2025 8:42 am
Yes, I was wanting to use "Everything" with RunProgram(). I will look into it anyway.
I considered that but it means users must have everything installed, so I was hoping to find a faster way to find a file (putty.exe) than the ExamineDirectory() route. PuTTY is not necessarily installed to program files folder so it can be anywhere. Even if it was, I can't get RunProgam() to open it without "Run as Administrator" and that's not an option for me.
Re: Search file system like "Everything" app?
Posted: Mon Feb 10, 2025 10:12 am
by PBJim
Randy Walker wrote: Mon Feb 10, 2025 9:27 am
BarryG wrote: Mon Feb 10, 2025 8:42 am
Yes, I was wanting to use "Everything" with RunProgram(). I will look into it anyway.
I was hoping to find a faster way to find a file (putty.exe) than the ExamineDirectory() route. PuTTY is not necessarily installed to program files folder so it can be anywhere.
Could you just package a copy of PuTTY.exe within your own software directory, since it's open source? You could then just call it from your directory. It doesn't have to be installed. Unless I'm misunderstanding you here Randy, but it could be hit-and-miss to try to find where PuTTY is installed on a system. Even if PuTTY is run standalone, it will still find the registry keys for loading sesions etc.
Re: Search file system like "Everything" app?
Posted: Mon Feb 10, 2025 4:41 pm
by skywalk
If windows, you could runprogram and parse RoboCopy bat commands that are piped to a temp file.
Similar functions for other O/S.
Re: Search file system like "Everything" app?
Posted: Tue Feb 11, 2025 12:25 am
by Randy Walker
PBJim wrote: Mon Feb 10, 2025 10:12 am
Could you just package a copy of PuTTY.exe within your own software directory, since it's open source? You could then just call it from your directory. It doesn't have to be installed. Unless I'm misunderstanding you here Randy, but it could be hit-and-miss to try to find where PuTTY is installed on a system. Even if PuTTY is run standalone, it will still find the registry keys for loading sessions etc.
Good after thought if I had done so to begin with. SecureCRT is a 20+ year old tradition I thought would never go away but cost of upgrade has everyone shirking the thought. PuTTY would be a great alternative if they didn't screw with the registry to store sessions which I wont. I don't touch anyone's registry for anything. Its just taboo. Best compromise I can try to give is put IP address in the clipboard and launch PuTTY for them.
Re: Search file system like "Everything" app?
Posted: Tue Feb 11, 2025 7:44 am
by PBJim
Randy Walker wrote: Tue Feb 11, 2025 12:25 am
Good after thought if I had done so to begin with. SecureCRT is a 20+ year old tradition I thought would never go away but cost of upgrade has everyone shirking the thought. PuTTY would be a great alternative if they didn't screw with the registry to store sessions which I wont. I don't touch anyone's registry for anything. Its just taboo. Best compromise I can try to give is put IP address in the clipboard and launch PuTTY for them.
There are some other PuTTY forks that have an option to avoid use the registry, such as Kitty :
https://www.9bis.net/kitty/#!pages/Port ... ortability
There are others also, if searching for "Putty without registry". We use PuTTY with the registry though and had no problems with it whatsoever. We modified it to work with a different registry key. I don't think it is worth paying for an emulator such as SecureCRT, given those high prices they are charging.
With PB we can even develop our own emulator — I developed a proxy in PB that keeps the terminal connections permanently up, even when the VPN has outages and loses connections.
Re: Search file system like "Everything" app?
Posted: Tue Feb 11, 2025 9:50 pm
by Randy Walker
PBJim wrote: Tue Feb 11, 2025 7:44 am
There are some other PuTTY forks that have an option to avoid use the registry, such as Kitty :
https://www.9bis.net/kitty/#!pages/Port ... ortability
There are others also, if searching for "Putty without registry". We use PuTTY with the registry though and had no problems with it whatsoever. We modified it to work with a different registry key. I don't think it is worth paying for an emulator such as SecureCRT, given those high prices they are charging.
With PB we can even develop our own emulator — I developed a proxy in PB that keeps the terminal connections permanently up, even when the VPN has outages and loses connections.
Great lead and suggestions PBJim. Thanks!!!
Also did short search which led me to this:
https://winscp.net/eng/docs/integration ... _putty_new
Using WinSCP to manage PuTTY sessions so I'll be looking into this since both are really needed to replace SecureCRT.
Re: Search file system like "Everything" app?
Posted: Tue Feb 11, 2025 10:42 pm
by Randy Walker
New WinSCP did not connect where PuTTY can so I'm left to guess WinSCP is not up on the latest ssl standards, so scratch WinSCP for now. used Revo-Uninstaller to remove it.
Re: Search file system like "Everything" app?
Posted: Tue Feb 18, 2025 11:27 pm
by Randy Walker
I solved my PuTTY / SecureCRT problem. SKIP BOTH

"
TeraTerm" is also Free and arguably better than putty, because it does not store session info in the Registry like Putty.
You can launch the Teraterm session using the runprogram() command and works perfectly. Lots of command line options offering better flexibility than PuTTY. It's just the perfect solution.