Re: how does windows find java.exe?



Roedy Green (see_website@xxxxxxxxxxxxxxxxxxxx) wrote:


: There is a way of putting any file no matter where it is, on the path
: by creating a registry entry. See
: http://mindprod.com/jgloss/registry.html

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

but I don't think that is quite the same putting it on the path.

The registry entry makes them visible to the START command, as in

C:> START program-not-in-PATH-but-is-in-REGISTRY.exe


But if you simply type the name of a command as in

C:> PROGRAM.exe

then it must be either in the current directory or in a directory listed
in the PATH environment variable. (Though some entries in the registry do
control which directories are listed in each user's PATH variable.)

$0.10
.



Relevant Pages

  • Solved: unrecognized external command error in command window
    ... Error in command window: ... it as the cause (the correct registry entry for Path was restored), ... The data type of the Path varible is REG_EXPAND_SZ, ...
    (microsoft.public.windowsxp.general)
  • Re: Get command line of a running process (local/remotely)?
    ... can call the StartService API and specify a different command line. ... The Registry entry is ... Yes in an ideal world I would ask the service what the true/real command line is but I might only be able to add this in future releases of our services. ...
    (microsoft.public.vc.mfc)
  • Re: CE player in fullscreen mood
    ... The only command line parameter that I see being processed is the filename ... Opening CEPlayer in full screen ... It is not playing in fullscreen. ...
    (microsoft.public.windowsce.platbuilder)
  • Acc2000 on Win2000: SendObject error
    ... the Send To command in the File menu, ... to delete a registry entry that was not there. ... entry that exists for Word and Excel that somehow was corrupted in Access; ...
    (microsoft.public.outlook.general)
  • Acc2000 on Win2000: SendObject Error
    ... the Send To command in the File menu, ... to delete a registry entry that was not there. ... entry that exists for Word and Excel that somehow was corrupted in Access; ...
    (microsoft.public.office.setup)