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
267 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

15 Experts available now in Live!

Get 1:1 Help Now