|I want to exctract the version string which is output when entering "Java -version" in the command prompt.|
The output is:
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) 64-bit Server VM (build 24.75-b04, mixed mode)
To extract it, I tried using this:
for /f "tokens=1,2,3 delims= " %%A in ('Java -version | findstr /x /i "java version "') do (
However, this returned "| was not expected"
What am I doing wrong?
If infinity is infinite, is the square root of infinity infinite as well?
- Kurp Von Steiner