B
bagarow
Hi
How do I determine which component of the PATH environment variable was
the first file path that had the binary being executed...
e.g. if there is java.exe in C:\Windows\system 32 and in C:\Program
Files\Java\jdk1.5.0_02\bin and the PATH variable contains
C:\Windows\system32 before
c:\Program Files\Java\jdk1.5.0_02, then I know if I execute java.exe it
comes from C:\Windows\system32.
Is there a utility that will automatically determine the source of the
executable? I suppose I could write one that would search each
component of the PATH variable in order. But if there is an existing
utility i would like to use that instead.
Thanks
Bob
How do I determine which component of the PATH environment variable was
the first file path that had the binary being executed...
e.g. if there is java.exe in C:\Windows\system 32 and in C:\Program
Files\Java\jdk1.5.0_02\bin and the PATH variable contains
C:\Windows\system32 before
c:\Program Files\Java\jdk1.5.0_02, then I know if I execute java.exe it
comes from C:\Windows\system32.
Is there a utility that will automatically determine the source of the
executable? I suppose I could write one that would search each
component of the PATH variable in order. But if there is an existing
utility i would like to use that instead.
Thanks
Bob