Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
302 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 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

876 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