DOS Command

M

mario

Is there a DOS command for doing a search.

For example, I would like to find all file names begining with "man" in "M"
drive and output it to a text file.

Thanks
Mario
 
B

Bruce Chambers

mario said:
Is there a DOS command for doing a search.

For example, I would like to find all file names begining with "man" in "M"
drive and output it to a text file.

Thanks
Mario


From within the Command prompt window:

Dir /s M:\man.*.* > M:\manfiles.txt

--

Bruce Chambers

Help us help you:


They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
 
M

mario

Can any one please let me know if I can export the windows search results
into an text file.
 
B

Bruce Chambers

Bruce said:
From within the Command prompt window:

Dir /s M:\man.*.* > M:\manfiles.txt


Oops! One period too many. Try:

Dir /s M:\man*.* > M:\manfiles.txt


--

Bruce Chambers

Help us help you:


They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
 
M

mario

Can any one please let me know if I can export the windows search results
into an text file.
 
T

Tim Slattery

mario said:
Can any one please let me know if I can export the windows search results
into an text file.

Bruce gave you this command:

Dir /s M:\man*.* > M:\manfiles.txt

The > character tells the command interpreter to send the output of
the dir command to a file. The name of the file follows:
M:\manfiles.txt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top