regAppendToPath function

void regAppendToPath(
  1. String newPath
)

Collection of Windows specific registry functions. Appends newPath to the Windows PATH environment variable.

A WindowsException is thrown if the call falls.

Implementation

/// Appends [newPath] to the Windows PATH environment variable.
///
/// A [WindowsException] is thrown if the call falls.
void regAppendToPath(String newPath) {
  final paths = _getPaths();
  if (!_isOnUserPath(newPath, paths)) {
    paths.add(newPath);
    _replacePath(paths);
  }
}