Source language: Translate to:

Search File

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Search File

Postby Alex » Tue Jul 05, 2011 4:22 am

Hi,

I am looking for a plugin that can find a file on my HDD. Is there one?

Thanks


Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Postby HPW » Tue Jul 05, 2011 6:28 am

You can use command filelist and search in the list.
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Alex » Tue Jul 05, 2011 6:53 am

Hi HPW,

Yes, I know, but if I want to search all *.txt in C:\ and folder and subfolder, or if I want to search text.exe in C:\ how can I do?

Thanks

Best Regards


Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Postby HPW » Tue Jul 05, 2011 6:57 am

I have not tried it myself. Just the conzept.
Code a loop and go through the list and search for the target or subfolder.
For each subfolder do it again.
In traditional languages this would be a case for rekursiv programming.
Doing this in neobook will be of course not very perfomant.
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Alex » Tue Jul 05, 2011 7:09 am

Hi HPW,

Yes that's the problem, it will not be so good I think, that's why, if there is a plugin or ActiveX for that, it will be great.

Thanks


Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Postby dpayer » Tue Jul 05, 2011 9:18 am

Alex wrote:Hi HPW,
Yes that's the problem, it will not be so good I think, that's why, if there is a plugin or ActiveX for that, it will be great.
Thanks
Alex


Alex, remember if you do a global search for files using the DIR command in a DOS window, you can do partial names.

example in a folder with 4 files: t123.txt, te123.txt, test123.txt, test12.txt

dir t*.txt - finds all
dir t?123.txt only finds te123.txt
dir t*123.txt only finds the first 3, not test12.txt

you can use a ? for a single unknown character, use the * for a group (unknown number) of characters.

This way you can limit your search.

If you run the command like this: dir /s /b t*123.txt >c:\list.txt

It will find all the files on your computer that have the extension .txt that start with t and end with 123 in the first part of the name. It will not include the extra data, but only the path/file name. It will then store them in a text file located in the root of the hard drive.

I tested this on my system with 1/2 million files on it. It took 10 seconds the first time I searched and 2 seconds the second time.

David P.
User avatar
dpayer
 
Posts: 1384
Joined: Mon Apr 11, 2005 5:55 am
Location: Iowa - USA

Postby Rasl » Tue Jul 05, 2011 12:25 pm

Try dec_Find plugin
From help:
the search is performed using masks, and may include several at once.

For example, you could search by the following mask: *. txt to find files that extension. You can also use *. txt, *. bmp, which would seek files with those extensions.

Another example. You might find the following mask: readme.txt, *. exe, *. zip files which can be sought with the extension "exe", "zip" file name and "readme.txt".

dec_Find also allows you to search subdirectories of a given directory, find a text in a file, etc..

salu2
Rasl
 
Posts: 129
Joined: Sat Apr 02, 2005 8:25 am
Location: Buenos Aires, Argentina

Postby dec » Wed Jul 06, 2011 3:42 am

User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Postby Alex » Wed Jul 06, 2011 6:04 am

Hi All !!!

Thank you very much for your help. I took the plugin and it works very good thanks.

Thanks dpayer for your help, I didn't know that function.

Thanks


Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am


Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 1 guest