Batch file - to search ?

G

Guest

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

Pegasus \(MVP\)

Ekka said:
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.

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

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top