Solved

Search results to txt file.

Posted on 2011-03-09
11
305 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Ready to trade in that old firewall?

Whether you need to trade-up to a shiny new Firebox or just ready to upgrade from whatever appliance you're using now, WatchGuard has the right appliance for you! Find your perfect Firebox today with appliance sizing tool!

Question has a verified solution.

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

Why pager replacement is still an issue OnPage has what some might call a “hate/hate” relationship with pagers. Not much room for love. As we see it, pagers are an antiquated bit of technology. Pagers are dinosaurs which, like most dinosaurs, sho…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
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…
Suggested Courses

632 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