How to search for any file via command prompt in Windows 10

How to search for any file via command prompt in Windows 10

The Windows 10 search box is a very effective tool for searching for a file or folder. But it's problematic when you're looking for a variety of parameters. Not only does it not handle a large number of files at the same time, but the search process is also very slow. If you want to find something specific on your computer, you can easily do it from System Symbol.


Method 1 Use the command dir -

1. You can easily start your run by pressing Tasto Windows + R.



2. Then type "cmd"And click"ok".

How to search for any file via command prompt in Windows 10

System symbol the window will open.

3. First, you need to go to the hard drive where the file is located on your computer.

4. Enter the name of the unit you want to search for CMD and then press Log in.

drive letter:

How to search for any file via command prompt in Windows 10

5. Now copy-paste this command in Window system symbol, change it according to your needs. So hit Log in key on the keyboard to execute it.

dir /s *file/ folder name or keyword in the file name*

[NOTES-

Enter the name or part of the name of the file/ folder in the command between the * signs. Example– We wanted to find the “GTAV” file. So, the command should look like this-

dir / s *GTAV*

]

How to search for any file via command prompt in Windows 10

You will notice the file (s) at the command prompt with detailed explanations of its location, size and modification date.

Method 2 using the Where command

Copying the search results to the Pad file is an easier way to use the information in other places. To do this, follow these steps:




1. At first, click the check box next to the Windows icon and type “cmd".

2. Hence, the right mouse button in "Symbol of the system"In the search result raised and click"Run as administrator".

How to search for any file via command prompt in Windows 10

3 inch Window system symbol, copy paste and edit the command. Then press the button Log in key to run it.


where /r *file/ folder name*

How to search for any file via command prompt in Windows 10

[NOTES-

Enter the name of the file/ folder in the command between the * signs with the file/ folder location


. Example– We wanted to find “GTAV.exe” at ‘e:GTAV‘ folder location. So, the command, at our end, looks like this-

where /r e:GTAV *GTAV.exe*
]

4. Now, if you want to see the results in the Pad window, copy paste this command and edit it. Then press the button Log in key to perform the search process.

where /r ** |clip

How to search for any file via command prompt in Windows 10

After running this command, you will not notice any results as the results have already been copied.


5. Click the search box next to the Windows icon and type "pad".

6. Click on 'pad".

How to search for any file via command prompt in Windows 10

7. In the Pad window, the right mouse button in a space and then click "Paste".

How to search for any file via command prompt in Windows 10

You will see the search results in the File Pad window.

How to search for any file via command prompt in Windows 10

This way you can search for any file / folder by passing a single command in System Symbol.

Additional tip-

It is possible to perform an indefinite search (where the full name of the parameter is unknown). In that case, the command will be-

dir / s <portion of the file name*>

How to search for any file via command prompt in Windows 10

This search will list all the names of those files that have the same letters you requested in the command.

For example, if you want to list filenames starting with "image" so that the command looks like this:

dir / s Photo*

In the search results, you will only see files whose name starts with "Gallery".

How to search for any file via command prompt in Windows 10

add a comment of How to search for any file via command prompt in Windows 10
Comment sent successfully! We will review it in the next few hours.