Computing.Net > Forums > Disk Operating System > DOS Find including subfolders

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS Find including subfolders

Reply to Message Icon

Name: mike0323
Date: July 23, 2002 at 17:46:28 Pacific
Comment:

Is there a way to make the DOS Find command also search all subfolders of the starting directory you give it? I don't know DOS that well. I am looking to do this because I have Windows XP and the find-text-in-files facility in that doesn't work and won't be fixed till Service Pack 1 comes out later this year. I have downloaded some free globabl search-and-replace programs, but what I have looked at so far is awkward when you just want to simply find without replacing and see a list of just the files found (instead of a log of all 3,500 files it searched). Thanks - Mike



Sponsored Link
Ads by Google

Response Number 1
Name: Miskva
Date: July 24, 2002 at 06:31:25 Pacific
Reply:

If you mean, just searching at a filename (and *NOT* the contents) you can use the regular 'dir' command with the extension '/s' :

- start from the root of a disk, run : 'cd\'
- run : 'dir filename.exe /s'

this will look for the file 'filename.exe' in that drive, amongst ALL subdirs

** If you mean, search INTO files, I don't know any easy way of doing that in dos
however, 'find' in unix can do something like that


0

Response Number 2
Name: DaveStL
Date: July 24, 2002 at 07:36:35 Pacific
Reply:

Sounds like XFIND is just what you want. Visit Horst Schaeffer's Batch Pages and download his FIND 2.3 file. XFIND is in there.

HTH


0

Response Number 3
Name: Gendo Rokubungi
Date: July 25, 2002 at 09:53:49 Pacific
Reply:

or you can use

dir c:\*.bmp /s

to search the entire C drive without having to leave the directory you are in.


0

Response Number 4
Name: Secret_Doom
Date: July 31, 2002 at 14:49:01 Pacific
Reply:

Use the /R switch from the FOR command (not avaliable out of NT systems):

FOR /R %a in (*.*) do FIND "STRING" %a

For more information, type "FOR /?"

-- Leonardo Pignataro - Secret_Doom --

secret_doom@hotmail.com
www.batch.hpg.com.br


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: DOS Find including subfolders

no dos disk to replace missing files www.computing.net/answers/dos/no-dos-disk-to-replace-missing-files/3519.html

I´m interested in get ms dos versions www.computing.net/answers/dos/im-interested-in-get-ms-dos-versions/3603.html

Find then Move in DOS www.computing.net/answers/dos/find-then-move-in-dos/12902.html