General

Command to find files from windows command prompt

So if you want to find files with a given extension in windows, this is how you would do:

$> where /r . *.java
C:\Program Files\Java\jdk-9\my-samples\sample1\src\org.astro\module-info.java
C:\Program Files\Java\jdk-9\my-samples\sample1\src\org.astro\org\astro\World.java

where,

  • /r says recursively search and match for files with given pattern,
  • and the argument after /r says to start from current directory

If you want to get more information use where/? which is the way to reach the help for the command

Advertisements

Categories: General

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.