Jump to content

Batch file - to search ?


Recommended Posts

Guest Ekka
Posted

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

  • Replies 3
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: Batch file - to search ?

 

 

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

Guest Ekka
Posted

Re: 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" <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*.*

>

>

>

Guest Pegasus \(MVP\)
Posted

Re: Batch file - to search ?

 

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

>>

>>

>>


×
×
  • Create New...