Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. 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.4 · 3.3 · 3.1 · 3.0