View Single Post
  #27  
Old July 9th 18, 11:43 PM posted to alt.windows7.general
Diesel
external usenet poster
 
Posts: 937
Default I need another batch file.

lid Mon, 02
Jul 2018 22:18:30 GMT in alt.windows7.general, wrote:

I want to search more than directory on multiple drives for movie
files.


If you're going to search by extension and not content, a batch file
can be useful for doing it. If you want to search by content and not
rely on filename, you'll require an actual program to do it.

I would like to copy a title to the clipboard and pass it to a
batch file that will give me a hit if I get a match.

I have no batch file skillz.


you could follow along and edit something as required, couldn't you? I
mean, if someone were to provide you a simple batch file that even
provides you a list! of the files (and their locations), you could edit
it as needed to search on more drives and for more content, yea?

For example.. If you're looking for avi files...

from console (command prompt)

cd\
cd %temp%
dir /s /a c:\*.avi myavi.txt
notepad myavi.txt


You could copy and paste those four lines into notepad and save it as a
..bat or .cmd file, so you don't need to rekey it everytime you want use
it. You can also make modifications like so:

cd\
cd %temp%
dir /s /a c:\*.avi myavi.txt
dir /s /a c:\*.mp4 myavi.txt
notepad myavi.txt

This will cause it to create myavi.txt in your profiles temp folder,
initially listing all avi files found on drive c:. It'll then search
again for mp4s and append them to the now existing myavi.txt file. So,
you'll have a list of avi and mp4 files on drive c: in myavi.txt when
it's finished.

Wanna search for webm too?

cd\
cd %temp%
dir /s /a c:\*.avi myavi.txt
dir /s /a c:\*.mp4 myavi.txt
dir /s /a c:\*.webm myavi.txt
notepad myavi.txt

Those statements above will search for avi, mp4, and webm file formats
present on drive c:.

So pick one and copy paste it from cd\ to notepad and save it as
filehunt.bat or filehunt.cmd. That way, just clicking on it will search
for the files in question and store the results in myavi.txt which will
then be opened with notepad for you to view when the searching is
finished.

With those examples, you should be able to see what has to be altered
to search on other drives or for more types of video files. If not,
ask your questions and we'll go from there.

Anyone care to write one for me?


Done...remember though, All three of those rely on common file
extensions to perform their searches. They do not perform any sort of
file analysis; no content search.


--
To prevent yourself from being a victim of cyber
stalking, it's highly recommended you visit he
https://tekrider.net/pages/david-brooks-stalker.php
================================================== =
The best teddy bears are the live kind.
Ads