(imported topic written by Don65)
I’m attempting to create a property that does the following:
if exists (running application “java.exe”) then search text file for (pathname of running application “java.exe”) and if found provide from the next line containing (java.version:) the (text following java.version:)
So for example:
Pathname of running application “java.exe” in this scenario is c:\Windows\system32\java.exe
expected output is 1.4.2_01
Here’s the contents of the text file.
EVALUATING C:\Program Files\Java\j2re1.4.1_01\bin\java.exe
java.home: C:\Program Files\Java\j2re1.4.1_01
java.vendor: Sun Microsystems Inc.
java.version: 1.4.1_01
EVALUATING C:\WINDOWS\system32\java.exe
java.home: C:\Program Files\Java\j2re1.4.2_01
java.vendor: Sun Microsystems Inc.
java.version: 1.4.2_01