regGetUserPath function

List<String> regGetUserPath(
  1. {bool expand = true}
)

Gets the User's Path (as opposed to the system path) as a list.

If expand is set to true (the default) then any embedded enironment variables are expanded out. A WindowsException is thrown the call falls.

Implementation

List<String> regGetUserPath({bool expand = true}) =>
    regGetExpandString(HKEY_CURRENT_USER, 'Environment', 'Path', expand: expand)
        .split(';');