Solved

Search results to txt file.

Posted on 2011-03-09
11
290 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:IT_newbie01
  • 4
  • 4
  • 2
  • +1
11 Comments
 

Author Comment

by:IT_newbie01
ID: 35086987
I'm looking for the text file to be editable.
0
 
LVL 30

Expert Comment

by:IanTh
ID: 35087042
I thind you can do search in dos I seem to remember its findstr and you can pipe it to a text file
0
 
LVL 6

Expert Comment

by:Dangle79
ID: 35087130
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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 2

Expert Comment

by:maxalarie
ID: 35087160


Easy..  In a command prompt:   dir /s  *.txt   > result.txt
0
 

Author Comment

by:IT_newbie01
ID: 35087528
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
 
LVL 2

Expert Comment

by:maxalarie
ID: 35087546
Yes.
0
 
LVL 2

Expert Comment

by:maxalarie
ID: 35087552
If its not creatingthe file, that means you might not have write permissions on the curretn direcotry.
0
 

Author Comment

by:IT_newbie01
ID: 35087553
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
 

Author Comment

by:IT_newbie01
ID: 35087614
Actually Maxalerie should get the points.  

Maxalrie, how to you specify a specific drive to search??
0
 
LVL 6

Accepted Solution

by:
Dangle79 earned 300 total points
ID: 35087630
DIR [drive:][path][filename]

or dir x:\path /s *.pst > c:\result.txt
0
 
LVL 2

Expert Comment

by:maxalarie
ID: 35087668
No worries.  Im Glad I could help.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question