This is my first instructable. so if I made a mistake please go easy on me.
I had made a simple batch file searcher, to help my self finding the files I need in my HDD jungle.
This batch is so much faster than standard windows search(windows button +f).
Pros:
- Very fast
- easy to make.
- Portable (infact you can memorize all the commands)
- using it makes you look very cool. :D
Cons:
- Limited to file name search only.
- must update data base regularly.
- update might took forever :)
I've searched instructable for similar batch file but found none.
That encourage me to make one.
Remove these ads by
Signing UpStep 1Getting Prepared
2. create a new folder. (md anything)
3. add the new folder to your system path variable
control panel->system properties->advanced->environment variable->select path->edit->ok
4. check it on the command window by typing "path" followed by enter button.
5. explore to your new folder.
6. create two new text document.
7. rename one of them into update.
8. rename the other one into search.
| « Previous Step | Download PDFView All Steps | Next Step » |











































You're not the only one and I did get that a lot... so I get used to it... XD.
cheers.
the dir command in the batch file are capable to find hidden files and folders. since it searches the string it will return any matched string whether that is a folder or a file.
sorry for the long reply.
How quick will it do this, e.g. if I want to find a document I know I've got somewhere in 150GB across 2 drives?
L
L
L
my updater
"
echo drive letter:
@set /p d=
@title UPDATE
@del k:\finder\allfiles.log
dir k:\ /s /a /b >> D:\finder\Allfiles.log
"
the finder
"
@set /p d=
echo drive letter:
:start
@echo off
Title Search
color 0a
set /p str=
findstr /I /L /A:FC %str% %d%:\finder\allfiles.log
goto start
"
oh yea do you know how to use if commands?
::update start
@title UPDATE
@del allfiles.log
@dir /s /a /b >> Allfiles.log
::update end
::search start
@echo off
Title Search
echo use \.extension $ for seeking extenson of file ie:*.mp3
color 0a
findstr /I /L /A:FC "%1 %2 %3" allfiles.log |more
::search end
use the batch above to make it portable. just put it on the root directory (not in a folder) of your flash drive. but you can only ran it from the root directory of your flash drive.
IMHO : your modification is nice, but it need more key stroke to get to result. that would be tiring if you do it repetitively.
I must warn you, since flash drive reading and writing speed is inferior to a hard drive it will took long initial loading process but it get faster once it got cached.
and about the IF command you can read it here :
http://home7.inet.tele.dk/batfiles/batfiles.htm
i want to ask you something
what is the "|more" for
and i saw you have no drive letter dose that just make do the drive that it is running on?
thanks for the if
usage:
yep, if you didn't assign specific place for a command(ie: k:\finder) it will start in the default directory (the current directory/folder).
it's my pleasure :)
from the command line, it will create a scheduled task that runs the update script every saturday at 9pm. You'll have to replace K:\finder\update.bat with the path of the update script, and "username" and "password" in the command above with your own username and password, and that will create a scheduled task. You can also of course change SAT to another day, replace the time, make it daily etc.- this page explains more about the schtasks command. You can then modify and delete the task using Scheduled Tasks in control panel.