Class PathEnv
- Namespace
- ZeroInstall.DesktopIntegration.Windows
- Assembly
- ZeroInstall.DesktopIntegration.dll
Manages the PATH environment variable.
public static class PathEnv
- Inheritance
-
PathEnv
- Inherited Members
Methods
AddDir(string, bool)
Adds a directory to the search PATH.
public static void AddDir(string directory, bool machineWide)
Parameters
directory
stringThe directory to add to the search PATH.
machineWide
booltrue
to use the machine-wide PATH variable;false
for the per-user variant.
Get(bool)
Returns the current search PATH.
public static string[] Get(bool machineWide)
Parameters
machineWide
booltrue
to use the machine-wide PATH variable;false
for the per-user variant.
Returns
- string[]
The individual directories listed in the search path.
RemoveDir(string, bool)
Removes a directory from the search PATH.
public static void RemoveDir(string directory, bool machineWide)
Parameters
directory
stringThe directory to remove from the search PATH.
machineWide
booltrue
to use the machine-wide PATH variable;false
for the per-user variant.
Set(string[], bool)
Sets the current search PATH.
public static void Set(string[] directories, bool machineWide)