PDA

View Full Version : Redirect the output of the 'search all files and folders'


J. Dennison
July 3rd 07, 12:04 PM
I would like to use the 'Search Files or Folders' command from the XP menu
but instead of the information being displayed on the screen have it written
to a text file.

Does anyone know of a way to do this?

Martin X.
July 3rd 07, 03:28 PM
This is the first thing off the top of my head: use the dir command.



1.. Go to a command prompt
2.. Go to the root of the drive you want to search in. Just keep typing
cd.. until you get to the root of the drive.
3.. If you want to search for a particular file name, then type the
following command:


dir *term*.* /s > c:\result.txt



Note: replace "search" with the term you are searching for. The asterisk is
a wild card. The /s means to search all subfolders also. If you need more
help with these commands, see http://www.computerhope.com/dirhlp.htm.

4.. The results of the search will be in the result.txt file.
"J. Dennison" <J. > wrote in message
...
I would like to use the 'Search Files or Folders' command from the XP menu
but instead of the information being displayed on the screen have it written
to a text file.

Does anyone know of a way to do this?

Ramesh, MS-MVP
July 3rd 07, 04:11 PM
How to print Windows XP Search results to a file ?:
http://windowsxp.mvps.org/searchresults.htm

Printing search results using the "Send To" Powertoy:
http://groups.google.co.uk/groups?selm=ekT9IKs0EHA.1860%40TK2MSFTNGP15.phx.gb l

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


"J. Dennison" <J. > wrote in message ...
I would like to use the 'Search Files or Folders' command from the XP menu
but instead of the information being displayed on the screen have it written
to a text file.

Does anyone know of a way to do this?

J. Dennison
July 4th 07, 01:02 AM
Thanks,
I have use the dos redirect command, but I was wanting to search the entire
network as the search files or folders does. I think the Ramesh, MS-MVP has
the solution.

"Martin X." wrote:

> This is the first thing off the top of my head: use the dir command.
>
>
>
> 1.. Go to a command prompt
> 2.. Go to the root of the drive you want to search in. Just keep typing
> cd.. until you get to the root of the drive.
> 3.. If you want to search for a particular file name, then type the
> following command:
>
>
> dir *term*.* /s > c:\result.txt
>
>
>
> Note: replace "search" with the term you are searching for. The asterisk is
> a wild card. The /s means to search all subfolders also. If you need more
> help with these commands, see http://www.computerhope.com/dirhlp.htm.
>
> 4.. The results of the search will be in the result.txt file.
> "J. Dennison" <J. > wrote in message
> ...
> I would like to use the 'Search Files or Folders' command from the XP menu
> but instead of the information being displayed on the screen have it written
> to a text file.
>
> Does anyone know of a way to do this?
>
>
>

Google