In the Windows console
- By
wherecommand, I'll find a file within%PATH
e.g:where cmd->C:\Windows\System32\cmd.exe - With result above, I'll move there
I tried...
- search in google
cd %(...where <F> | cd
I think...
wherecommand returns the directory and filename- So, is there any command to return just the directory?
- and, what if it is, how to pipe which
cdcommand - or, do I need a some script?