Computing.Net > Forums > Disk Operating System > Find files containing a rev string

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.

Find files containing a rev string

Reply to Message Icon

Name: Hugo
Date: November 17, 2003 at 14:39:48 Pacific
OS: XP
CPU/Ram: P4 1.5GHz/512MB
Comment:

I am trying to create a bat file that will run a search in G:\testing\temp folder. But I want it to only find .rpt files that contain the string "rev" anywhere in the name. I also need it to do this search on the subfolders that the G:\testing\temp folder has. Then to output the results in a .txt file on the C:\ drive. Does anyone know how to do something like this? Any help is appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: Vernon Frazee
Date: November 18, 2003 at 02:29:19 Pacific
Reply:

Try this:

dir g:\testing\temp\*rev*.rpt /s > c:\results.txt


0

Response Number 2
Name: Wengier
Date: November 18, 2003 at 15:01:16 Pacific
Reply:

Yes, Vernon is right. If you just want to list the file names, then you can also add the "/b" switch for DIR.


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: Find files containing a rev string

Finding file containing particular www.computing.net/answers/dos/finding-file-containing-particular-/11457.html

A String in file found in DOS www.computing.net/answers/dos/a-string-in-file-found-in-dos/10597.html

Copy a File based on Find results www.computing.net/answers/dos/copy-a-file-based-on-find-results/11949.html