Solved

Search results to txt file.

Posted on 2011-03-09
11
274 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
 
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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
We need a new way to communicate time sensitive or critical info.   The best part of my role at xMatters is visiting our clients all over the world to learn about how they operate their businesses, share insights that xMatters has gleaned across…
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 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

861 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now