Search for files under Windows Command Line

Source: Internet
Author: User

After you get used to Windows operations, open "File Manager" every time you search for a file, and wait until the search is complete. In addition to this GUI, we can perform faster search under the command line. Because it is under the command line, you only need to enter a few words to start searching. In addition, the startup command line does not need to load additional interface resources, and the startup speed is very fast, so it is much more comfortable to use.
The procedure is as follows:

1. Windows key + R
2. Enter cmd to enter the Windows command prompt.
(I directly put a VS 2005 shortcut in the Quick Start column, see)

3. Enter the target location to search
C:
CD windows
4. Use DIR/s to search for the current directory and Its subfolders
Dir *. jpg/s
If there are many results, you can use the more command to split the screen.
Dir *. jpg/S | more
Or redirect to the file and open it in notepad.
Dir *. jpg/S> jpgsearch.txt
Notepad jpgsearch.txt

Similarly, you can search for strings in a file:
Findstr/N/S "<iostream>" *. cpp
This command is used to search for the c ++ source in the current directory and Its subdirectories.ProgramFile to match the string <iostream> and display the matched file name and row number.
In addition, I learned from my colleagues that I can start a file manager under the command line and use the current directory as its starting directory:
Start.
(Note that there is a following point, which is the starting DIRECTORY parameter)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.