Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Win32::Registry.expand_environ

expand_environ(str)

Replace %\w+% into the environment value of what is contained between the %‘s This method is used for REG_EXPAND_SZ.

For detail, see expandEnvironmentStrings Win32 API.

See also .create .new .open also in 4.0 · 3.3 · 3.2 · 3.1 · 3.0