Batch file - to search ?  
Author Message
Bif





PostPosted: Sun Jul 08 04:28:43 CDT 2007 Top

Windows XP >> Batch file - to search ? 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

Windows XP1348  
 
 
Pegasus





PostPosted: Sun Jul 08 04:28:43 CDT 2007 Top

Windows XP >> Batch file - to search ?
"Ekka" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.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*.*


 
 
Ekka





PostPosted: Sun Jul 08 05:00:00 CDT 2007 Top

Windows XP >> Batch file - to search ? 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" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.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





PostPosted: Sun Jul 08 10:19:43 CDT 2007 Top

Windows XP >> Batch file - to search ? No. To search the registry you must use regedit.exe or a
similar tool.


"Ekka" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.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" <EMail@HideDomain.com> wrote in message
>> news:EMail@HideDomain.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*.*
>>
>>
>>