How to Search files in Windows 10 through Command prompt

preview_player
Показать описание
How to Search files in Windows 10 through Command prompt

where /r Drive_Letter: *file_name*

dir /b/s *file_name*
Рекомендации по теме
Комментарии
Автор

It says "where is not recognized as an internal or external command.."

GenoPendula
Автор

Hi, Is it a way to find a file based on its extension ? I have an exe file and I want the exe file finds the related file with specific extension through the same folder and run it. Thanks!

ngm
Автор

That's the reason people don't use it you just answered your question. If someone knows they have a file but has multiple drives they can't say where to search. In your examples you said to add the location of the file. Search is better in that you don't have to know where it's located. Kinda the point of search for a lot of people.

madnotez
Автор

What is the syntax for the same command in Powershell ? Thank you

steveosteen
Автор

How to find word in a single command ? Any word in the laptop.

jyotiram