I have some program in many places (it is the java command)..
I am starting this command from CMD. the problem is, I need to know exactly the path of the java command being run..
(If you know unix, I need a command such as which ).
Thanks.
I have some program in many places (it is the java command)..
I am starting this command from CMD. the problem is, I need to know exactly the path of the java command being run..
(If you know unix, I need a command such as which ).
Thanks.
There is not an exact equivalent of "Unix's which" in Windows, but that does not mean there is no solution ;) Check out the following link:
Because time ago I could not found an adequate alternative of "which" command for windows, I implemented a simple replacement in python featuring also partial matches of command names:
https://gist.github.com/667891
Hope you find it useful :)