Link to home
Start Free TrialLog in
Avatar of jmaruthi
jmaruthi

asked on

Exporting Windows Explorer Search Results

Hi,
Can some pls tell me how to export the windows explorer search results into an excel ?
I am on Win 2K Professional OS.
thanks and regards.
ASKER CERTIFIED SOLUTION
Avatar of paraghs
paraghs
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Open a DOS window or write a batch file to do something like:

dir test* /s >c:\temp\dir.txt

The "TEST*" is only an example of what you can search for.  The /s also looks in subfolders, depending on where you start the search from.

The "TXT" file can then easily be imported into Excel.

Cheers,
Rick
Avatar of rkotowic
rkotowic

Sorry, there is no way to export explorer search results to excel.
Avatar of jmaruthi

ASKER

thanks to all..i have exported the search results using thirdparty tools..
Run the batch file mentioned in my previous comment.

Set up a makro in an empty Excel Table, something like this:

Sub Makro1()
    ChDir "C:\Temp"
    Workbooks.OpenText Filename:="C:\Temp\dir.txt", Origin:=xlWindows, _
        StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), Array(9, _
        1), Array(31, 1), Array(39, 1)), TrailingMinusNumbers:=True
End Sub

There is a mesed up way to do it. Very messed up time comsuming. Don't use this solution use the DOS solution as it is a much better answer. This answre does answer your question exactly. Take a screen shot of the search results, use a text recognition software to get the text. Better solution would be to use the sendmessage api to get the actual text.

I wish windows seach had an AND OR and NOT operator. The ability to save a set of files and reseach them given new parameters..

anyway use DOS
Thanks, Turn & Modulo.