Solved

Search results to txt file.

Posted on 2011-03-09
11
283 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
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.

 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Ever wondered why Windows 8 and 10 don't seem to accept your GPO-based software deployment while Windows 7 does? Read on.
There's a better way to communicate time sensitive or critical info.
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…
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…

809 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