View Full Version : Searching for files or file ext in command prompt


Jera
02-25-2004, 11:15 PM
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

Paul Matear
02-25-2004, 11:22 PM
DIR

"Jera" <anonymous@discussions.microsoft.com> wrote in message
news:1a4201c3fbf5$461b2810$a001280a@phx.gbl...
> 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

Paul Matear
02-25-2004, 11:22 PM
DIR

"Jera" <anonymous@discussions.microsoft.com> wrote in message
news:1a4201c3fbf5$461b2810$a001280a@phx.gbl...
> 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

02-25-2004, 11:35 PM
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

>-----Original Message-----
>DIR
>
>"Jera" <anonymous@discussions.microsoft.com> wrote in
message
>news:1a4201c3fbf5$461b2810$a001280a@phx.gbl...
>> 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
>
>
>.
>

02-25-2004, 11:35 PM
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

>-----Original Message-----
>DIR
>
>"Jera" <anonymous@discussions.microsoft.com> wrote in
message
>news:1a4201c3fbf5$461b2810$a001280a@phx.gbl...
>> 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
>
>
>.
>

Mark V
02-25-2004, 11:51 PM
In microsoft.public.win2000.cmdprompt.admin wrote:

>
>
> 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)


>>-----Original Message-----
>>DIR
>>
>>"Jera" <anonymous@discussions.microsoft.com> wrote in
> message
>>news:1a4201c3fbf5$461b2810$a001280a@phx.gbl...
>>> 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
>>
>>
>>.
>>

Mark V
02-25-2004, 11:51 PM
In microsoft.public.win2000.cmdprompt.admin wrote:

>
>
> 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)


>>-----Original Message-----
>>DIR
>>
>>"Jera" <anonymous@discussions.microsoft.com> wrote in
> message
>>news:1a4201c3fbf5$461b2810$a001280a@phx.gbl...
>>> 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
>>
>>
>>.
>>

Phil Robyn [MVP]
02-25-2004, 11:53 PM
anonymous@discussions.microsoft.com wrote:

>
> 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.

>
>
>>-----Original Message-----
>>DIR
>>
>>"Jera" <anonymous@discussions.microsoft.com> wrote in
>
> message
>
>>news:1a4201c3fbf5$461b2810$a001280a@phx.gbl...
>>
>>>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
>>
>>
>>.
>>


--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l

Phil Robyn [MVP]
02-25-2004, 11:53 PM
anonymous@discussions.microsoft.com wrote:

>
> 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.

>
>
>>-----Original Message-----
>>DIR
>>
>>"Jera" <anonymous@discussions.microsoft.com> wrote in
>
> message
>
>>news:1a4201c3fbf5$461b2810$a001280a@phx.gbl...
>>
>>>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
>>
>>
>>.
>>


--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l