IT_newbie01
asked on
Search results to txt file.
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
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
I thind you can do search in dos I seem to remember its findstr and you can pipe it to a text file
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
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
Easy.. In a command prompt: dir /s *.txt > result.txt
ASKER
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
dir /s *.pst > result.txt
Yes.
If its not creatingthe file, that means you might not have write permissions on the curretn direcotry.
ASKER
I got it:
dir /s *.pst > c:\result.txt
I think dangle79 answered what i was looking for 1st.
thanks everyone for your help!
dir /s *.pst > c:\result.txt
I think dangle79 answered what i was looking for 1st.
thanks everyone for your help!
ASKER
Actually Maxalerie should get the points.
Maxalrie, how to you specify a specific drive to search??
Maxalrie, how to you specify a specific drive to search??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No worries. Im Glad I could help.
ASKER