PC Review


Reply
Thread Tools Rate Thread

Batch file - to search ?

 
 
=?Utf-8?B?RWtrYQ==?=
Guest
Posts: n/a
 
      8th Jul 2007
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
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      8th Jul 2007

"Ekka" <(E-Mail Removed)> wrote in message
news:3CDFB224-55F7-4617-9BCC-(E-Mail Removed)...
> 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*.*


 
Reply With Quote
 
=?Utf-8?B?RWtrYQ==?=
Guest
Posts: n/a
 
      8th Jul 2007
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" <(E-Mail Removed)> wrote in message
> news:3CDFB224-55F7-4617-9BCC-(E-Mail Removed)...
> > 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*.*
>
>
>

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      8th Jul 2007
No. To search the registry you must use regedit.exe or a
similar tool.


"Ekka" <(E-Mail Removed)> wrote in message
news:90C82740-E1C5-4DC9-A7A0-(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
>> news:3CDFB224-55F7-4617-9BCC-(E-Mail Removed)...
>> > 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*.*
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch file to search file. Pr_ngp Microsoft Dot NET 0 1st Feb 2009 09:26 AM
batch file call from a macro - how ? and required batch format VB-rookie Microsoft Excel Programming 3 5th Sep 2008 10:33 PM
Save batch window msgs to a file from the batch prog Stephen Rainey Windows XP General 3 10th Jan 2007 12:50 AM
How to search/batch-change file attributes BillW Windows XP General 1 4th Jan 2007 07:12 PM
batch file to execute a search Jason Carpenter Microsoft Windows 2000 CMD Promt 1 29th Jul 2003 08:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:19 PM.