Emnico in Swindon and its partners
in the UK and Europe provide:

» IT Support Services and Products
» Bespoke Software Development


Contact our Swindon office on:
+44 (0)1793 614 700
to discuss your IT needs.


CLOSE IT
Emnico Logo
Your Virtual Technology Team
Delivering Peak Performance
Category: Type: Order:
Search For:  
Home > Library > List Java Versions

List Java Versions

This script will list all installed versions of Java.
Added 283 days ago by Emnico
Download
Review
Back
59Views
This script has been successfully tested by Emnico and is verified to be working.

Source code

dim arr()

redim arr(0)
i = 0

sFolder = "C:\Program Files\Java"

Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(sFolder)  
Set fc = f.Files
Set ff = f.SubFolders  

For Each f1 in ff
  redim preserve arr(i)
  arr(i) = f1.name
  i = i+1
Next  

For Each f1 in fc
  redim preserve arr(i)
  arr(i) = f1.name
  i = i+1
Next  

For i=0 To UBound(arr,1)
WScript.echo arr(i)
Next


| Privacy policy | Environmental policy | Site map |