Command.cs
/// <summary>
/// Adds value to User environment PATH variable
/// </summary>
/// <param name="value">value thats going to be added to the PATH variable</param>
Adds value to User environment PATH variable
Adds value to User environment PATH variable
protected void AddToPath(string value)
        {
            var name = "PATH";
            var scope = EnvironmentVariableTarget.User;
            var oldValue = Environment.GetEnvironmentVariable(name, scope);
            oldValue += ";" + value;
            Environment.SetEnvironmentVariable(name, oldValue, scope);
        }
protected void AddToPath ( string value ) { var name = " " ; var scope = EnvironmentVariableTarget . User ; var oldValue = Environment . GetEnvironmentVariable ( name , scope ) ; oldValue += " " + value ; Environment . SetEnvironmentVariable ( name , oldValue , scope ) ; }
Adds value to User environment PATH variable
Adds value to User environment PATH variable
value
string
value thats going to be added to the PATH variable
value thats going to be added to the PATH variable