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
285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

733 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