Link to home
Start Free TrialLog in
Avatar of IT_newbie01
IT_newbie01

asked on

Search results to txt file.

Afternoon experts,

I am looking to find a way to grab a search (result: 706 files) to a text file.  I am stumped on a way to conveniently do this task.  Attached is a screen shot.

scearch-result.JPG
Avatar of IT_newbie01
IT_newbie01

ASKER

I'm looking for the text file to be editable.
I thind you can do search in dos I seem to remember its findstr and you can pipe it to a text file
look here
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/find.mspx?mfr=true

specifically about 2/3 down the page about using the dir command with the /s switch

simply append  " > c:\searchresults.txt " to the end of your command to direct the results to a text file.

obviously start small and test to get your syntax right


Easy..  In a command prompt:   dir /s  *.txt   > result.txt
Ok, im looking for the syntax.  I want to search every file on the T:\ driveand return all .pst files while saving to a text file.  the below is what i have so far, not currently creating the "result.txt" file.

dir /s *.pst > result.txt
Yes.
If its not creatingthe file, that means you might not have write permissions on the curretn direcotry.
I got it:

dir /s *.pst > c:\result.txt

I think dangle79 answered what i was looking for 1st.

thanks everyone for your help!
Actually Maxalerie should get the points.  

Maxalrie, how to you specify a specific drive to search??
ASKER CERTIFIED SOLUTION
Avatar of Dangle79
Dangle79
Flag of United States of America 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
No worries.  Im Glad I could help.