If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#16
|
|||
|
|||
How does CMD.EXE find certain apps?
The Which Command looks handy. Too bad that it's a Linux and Unix command.
-- Hope this helps. Let us know. Wes MS-MVP Windows Shell/User In , Admiral Q Star_Fleet_Admiral_Q(No_Spam)@(Spam_Me_Not)hotmai l.com hunted and pecked: "Michael Moser" wrote in message ... I have an question re. application paths: how does the command-line interpreter locate certain executables? E.g.: I can enter "java -jar someJarFile" on the cmd-line and that happily executes "C:\Program Files\Java\jre1.5.0_07\bin\java.exe". But where does cmd know, where that java.exe sits? "C:\Program Files\Java\jre1.5.0_07\bin" is NOT part of the PATH, there is no environment variable relating to Java (like JAVA_HOME or JDK_HOME or such defined), so where exactly does cmd get that info from? Michael From the "cmd" line, type in "which java" and it should tell you exactly where windows found the executable for "java". This should work for any program you can run from the "cmd" line, then check your "PATH" variable to see if that path is there. -- --- Star Fleet Admiral Q @ your service! "Google is your Friend" http://www.google.com |
Ads |
#17
|
|||
|
|||
How does CMD.EXE find certain apps?
You can get which.exe for MS Windows from
http://gnuwin32.sourceforge.net/packages.html (scroll down) /luigi "Wesley Vogel" wrote in : The Which Command looks handy. Too bad that it's a Linux and Unix command. -- Luigi M Bianchi Toronto, Ontario, Canada |
|
Thread Tools | |
Display Modes | |
|
|