Solved

What command could I use to find all occurrences of the literal string "sox - sign in" within network folder U:\FSSOX?

Posted on 2011-09-30
1
253 Views
Last Modified: 2012-05-12
I have a question on MS DOS.

Let's assume I am in a network drive.

My command prompt is at

U:\FSSOX>

What command could I use to find all occurrences of the literal string "sox - sign in"
within folder U:\FSSOX?

I imagine it would be something like:

U:\FSSOX>findstr /i  /m  /U:/FSSOX/:"sox - sign in"  "U:\FSSOX\*.* "
   
0
Comment
Question by:zimmer9
1 Comment
 
LVL 6

Accepted Solution

by:
netjgrnaut earned 500 total points
ID: 36893531
Really MS-DOS?  Or a cmd/command prompt on a Windows workstation?  What version of Windows?  Available tools and syntax varies.  

If you want to use findstr, and you just want the names of the files in which the string occurs, then you're close.  Try...

U:\FSSOX> findstr /i /m /s /c:"sox - sign in" *.*

Open in new window


Here's a good link to all the options on modern versions of findstr.

Hope that helps!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now