I know that for file search on Windows CMD one can use the following command:

dir /S /P "PATH/FILENAME"

Is there an easy way to go straight to the result directory. For example, the requested file is found in:

C:\Program Files................\myProgram\Readme.txt

How to quickly go to that directory via CMD (any commands)? Or one has to simply mark and copy/paste the path on the next prompt?


Solution 1:

I know this is not the exact solution for your question, but you can always open a command prompt at a specified location by navigating to the desired location using windows explorer and then by pressing shift + right click and clicking "Open command window here".

If you already knew this, please disregard this.

Hope it helps.