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
IT_newbie01Asked:
Who is Participating?
 
Dangle79Connect With a Mentor Commented:
DIR [drive:][path][filename]

or dir x:\path /s *.pst > c:\result.txt
0
 
IT_newbie01Author Commented:
I'm looking for the text file to be editable.
0
 
IanThCommented:
I thind you can do search in dos I seem to remember its findstr and you can pipe it to a text file
0
Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

 
Dangle79Commented:
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
0
 
maxalarieCommented:


Easy..  In a command prompt:   dir /s  *.txt   > result.txt
0
 
IT_newbie01Author Commented:
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
0
 
maxalarieCommented:
Yes.
0
 
maxalarieCommented:
If its not creatingthe file, that means you might not have write permissions on the curretn direcotry.
0
 
IT_newbie01Author Commented:
I got it:

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

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

thanks everyone for your help!
0
 
IT_newbie01Author Commented:
Actually Maxalerie should get the points.  

Maxalrie, how to you specify a specific drive to search??
0
 
maxalarieCommented:
No worries.  Im Glad I could help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.