Searching for files or file ext in command prompt

J

Jera

Is there a command to use to search for files in command
prompt? I thought to use wildcard such as *.txt for
all .txt files but that does not work. Also tried test.*
that did not work either. Any ideas?

Thanks,

Jera
 
G

Guest

Yes we all know the dir command. I am looking to search
the computer not the current directory for files where I
know the name not the extension or I know the extension
and not the name.


Thanks,

Jera
 
M

Mark V

In said:
Yes we all know the dir command. I am looking to search
the computer not the current directory for files where I
know the name not the extension or I know the extension
and not the name.

DIR

As in DIR c:\*.txt /s /a
But will need to do for each volume (drive letter)

 
P

Phil Robyn [MVP]

Yes we all know the dir command. I am looking to search
the computer not the current directory for files where I
know the name not the extension or I know the extension
and not the name.


Thanks,

Jera

dir /s \test*

dir /s \*.txt

If you *really* want to know the 'dir' command, type 'DIR /?'
(without apostrophes) at a CMD prompt.
 

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