A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Customizing Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How does CMD.EXE find certain apps?



 
 
Thread Tools Display Modes
  #16  
Old April 7th 07, 05:05 PM posted to microsoft.public.windowsxp.customize
Wesley Vogel
external usenet poster
 
Posts: 6,188
Default 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  
Old April 10th 07, 03:40 AM posted to microsoft.public.windowsxp.customize
Luigi M Bianchi
external usenet poster
 
Posts: 20
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 04:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.