Windows Command Prompt: the “where” command
Self-tutoring about Windows: the tutor mentions a neat find.
I use
where filename
to find the directory location of a file or program. The command doesn’t change the current directory; rather, it tells the absolute path to the file you’re mentioning.
My understanding is that “where” searches from the locations in the PATH list. Moreover, if you want to search a specific directory, you can use the /R switch:
where /R directory filename
In particular, to search the current directory, I use
where /R . filename
Source:
Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.
Leave a Reply
You must be logged in to post a comment.