GitHub - groovy/Scriptom: Scriptom project, offering a access to Windows / COM / Ole components from Groovy

Note: Scriptom is not actively maintained.

Scriptom provides a simple yet powerful COM library for Groovy. It is implemented as a thin layer around [JACOB (Java COM Bridge)](https://sourceforge.net/projects/jacob-project/). JACOB is a mature open-source library for Java that supports communicating with COM libraries and automation servers on Microsoft Windows.

Scriptom attempts to mirror all the functionality of JACOB, but in a "groovy" way. Here is a quick example that uses Scripting.FileSystemObject to list the paths to all active rooted drives on your system (italics show COM methods and properties):

  new ActiveXObject('Scripting.FileSystemObject').Drives.findAll{it.IsReady}.each{println it.Path}       `

Visual Basic was never this easy!