Batch file - to search ?

  • Thread starter Thread starter Ekka
  • Start date Start date
E

Ekka

How would i create a batch file to search for a file/folder in XP?
I am soing an exercise where the search function is not working in XP.
--
Ekka@DeeWhy
 
"Ekka" <Ekka@discussions.microsoft.com> wrote in message
news:3CDFB224-55F7-4617-9BCC-419411062119@microsoft.com...
> How would i create a batch file to search for a file/folder in XP?
> I am soing an exercise where the search function is not working in XP.
> --
> Ekka@DeeWhy


To search for a file:

@echo off
dir /s /a-d c:\Ekka*.*

For a folder:
dir /s /ad c:\Ekka*.*

For both:

dir /s c:\Ekka*.*
 
Pegasus thats great thanks. Can you also do this as a registry export (not
using regedit.exe)? In other words search for and then export the information.
--
Ekka@DeeWhy


"Pegasus (MVP)" wrote:

>
> "Ekka" <Ekka@discussions.microsoft.com> wrote in message
> news:3CDFB224-55F7-4617-9BCC-419411062119@microsoft.com...
> > How would i create a batch file to search for a file/folder in XP?
> > I am soing an exercise where the search function is not working in XP.
> > --
> > Ekka@DeeWhy

>
> To search for a file:
>
> @echo off
> dir /s /a-d c:\Ekka*.*
>
> For a folder:
> dir /s /ad c:\Ekka*.*
>
> For both:
>
> dir /s c:\Ekka*.*
>
>
>
 
No. To search the registry you must use regedit.exe or a
similar tool.


"Ekka" <Ekka@discussions.microsoft.com> wrote in message
news:90C82740-E1C5-4DC9-A7A0-AB9C7E6168FD@microsoft.com...
> Pegasus thats great thanks. Can you also do this as a registry export (not
> using regedit.exe)? In other words search for and then export the
> information.
> --
> Ekka@DeeWhy
>
>
> "Pegasus (MVP)" wrote:
>
>>
>> "Ekka" <Ekka@discussions.microsoft.com> wrote in message
>> news:3CDFB224-55F7-4617-9BCC-419411062119@microsoft.com...
>> > How would i create a batch file to search for a file/folder in XP?
>> > I am soing an exercise where the search function is not working in XP.
>> > --
>> > Ekka@DeeWhy

>>
>> To search for a file:
>>
>> @echo off
>> dir /s /a-d c:\Ekka*.*
>>
>> For a folder:
>> dir /s /ad c:\Ekka*.*
>>
>> For both:
>>
>> dir /s c:\Ekka*.*
>>
>>
>>
 
Back
Top