We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 130d200 commit 3959e21Copy full SHA for 3959e21
1 file changed
Java/getJavaVersion.bat
@@ -0,0 +1,15 @@
1
+@echo off
2
+rem : ------------------------------
3
+rem :
4
+rem : sets java version as a number to jver
5
+rem : variable in one line.
6
+rem : by Vasil "npocmaka" Arnaudov
7
8
9
+
10
+for /f tokens^=2-5^ delims^=.-_^" %%j in ('java -fullversion 2^>^&1') do set "jver=%%j%%k%%l%%m"
11
12
13
+rem : for execution directly to the command prompt use the line bellow
14
+rem : for /f tokens^=2-5^ delims^=.-_^" %j in ('java -fullversion 2^>^&1') do @set "jver=%j%k%l%m"
15
0 commit comments