Batch file - to search ?

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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*.*
 
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.
 
Back
Top