Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
298 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 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

661 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