Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Command Prompt - Windows 11, 10, etc. ► ««« »»»

Searching in files by string via command prompt?


The classic search in files for a character string via the command prompt is hardly used anymore, but it is still available on Windows 11, 10, ...!




In order for it to make any sense on new Microsoft Windows operating systems, the command prompt should be started in Unicode mode. As described here ►► start the input prompt in the Unicode character set . Otherwise you will only find characters in the non -Unicode character set ! But here are some examples!



Contents:

1.) ... Examples Searching with Find!
2.) ... More tips and information about searching and the like on MS Windows OS! 



1.) Examples Searching with Find!

In the C:\Windows directory, look for the text "font" in all files  


find "font" C:\Windows\*



Search in directory C:\Windows for the text "font" in *.ini files


find "font" C:\Windows\*.ini /i


/I          Ignore case when searching.

Search in the C:\Windows directory for the text "font" in *.ini files and redirect the output to a file


find "font" C:\Windows\*.ini > D:\search_font_output.txt 


If you want to know how many lines a file contains, you can use a combination of the type and find commands. The type command displays the contents of one or more text files.


find "font" C:\Windows\*.ini > D:\search_font_output.txt /v /c


/V          Displays all lines NOT containing the string.

/C          Displays only the number of lines containing the string.

/N          Displays the lines with their line numbers.


2.) More tips and information about searching and the like on MS Windows OS! 

As mentioned above, the search is functional, but quite difficult to use and useful, but you can experiment with it and implement eventual automation in various monitoring tasks.

►► Find file comparisons and identical ones via the command line of cmd.exe
►► Windows 10 / 11 File Explorer search modification time!
►► Search without subfolders in the File Explorer search Windows!



 



FAQ 142: Updated on: 26 August 2023 11:00 Windows
Windows-Console

Rename JPEG to JPG via command line, but how?


Sometimes you just want to rename JPEG to JPG to keep things in order, you can do that easily from the command line on MS Windows Desktop and Server OS
Windows-Console

Deleting files with no content using a batch file, but how?


Deleting files without content with a batch file, command prompt, or via the address bar in File Explorer is quite popular Here you can find out. that
Windows-Console

Is there a list of WMIC commands on MS Windows?


It is quite easy to have the MMIC commands listed on all Microsoft Windows desktop and MS servers and to obtain further information WMIC is deprecated The
Windows-Console

Realize dark mode switch with a batch file?


Why not simply implement the dark mode in Microsoft Windows 11 or 10 with a batch file at the push of a button and without an administrator query Everyone
Windows-Console

How and why do command lines work in CMD.EXE?


The command line in CMD.EXE, often also called console or terminal, is a text-based interface within the operating system that can make things a lot easier
Windows-Console

Schedule a webpage to open via the command prompt?


On MS Windows operating systems you can use SCHTASK to open a web page at a specific time, why not when its so easy Here are a few examples for the time-controlled
Windows-Console

Batch job file to cancel print jobs?


Looking for a batch job file to cancel print jobs, youve finally arrived at the problem-solving point and you can create or download it Contents: 1.

»»

  My question is not there in the FAQ
Asked questions on this answer:
  1. Searching for character string, paragraph of text using a command prompt as a search function in Windows?
  2. Searching single document for a string, search string?
  3. How is it done using search from windows command prompt?
  4. Search terms and search results Prompt?
  5. Looking for a command line tool that can help me as a Windows user to search the contents of files for specific text strings?
Keywords: windows, console, searching, files, string, command, prompt, classic, search, character, hardly, used, anymore, still, available, order, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + ThisIsMyFile
  + TheAeroClock
  + Bitte.Wenden
  + CoronaKO
  + MatriX.CoronaKO
  + Find.Same.Images.OK
  + 3D.Benchmark.OK
  + PhotoResizerOK
  + Office.Files.Images
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► Windows 10/11 Volume Mixer Desktop Shortcut, how to create? ◄
► Difference between developer mode and safe mode? ◄
► Reinstall Windows XP and format hard drive, how to? ◄
► Who benefits most from increased energy efficiency in Windows? ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....