Solved

Search results to txt file.

Posted on 2011-03-09
11
259 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Google Storage: Standard vs. Nearline vs. Coldline

Google Cloud Storage has a number of classes to choose from. Although there are a lot in common, they vary in price and usage terms. This post explains Google Cloud Storage classes and helps to understand which  one to choose.

Join & Write a Comment

This is a based on my experience in IT role and also my role before that, a builder. These 1st contact rules have helped me and more importantly help past, present and hopefully future client/people I get to work/assist. Via Telephone: 1.      Answ…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

706 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

18 Experts available now in Live!

Get 1:1 Help Now