About EasyMorph Tutorials & Examples Web-help

Get Windows Environment-Variables (like VBA)

Hi,

is it possible to get Windows system environment variables (USERNAME, COMPUTERNAME, USERDOMAIN …)

VBA-Example:
environ(“USERNAME”)

Regards,

Adrian

Hi Adrian,

You can get user name with the system('user') function.

Other environment variables can be obtained through the PowerShell action with a command like the following: $env:UserDomain and the “Capture output and error collections” option turned on.

1 Like
To learn more about EasyMorph visit easymorph.com.