Skip to content

Replacing setx in the readme.md #630

@LillyPK

Description

@LillyPK

Hello, I noticed that the readme file recommends using setx but setx is old and it can only handle 1024 characters in the path variable. If you have more than 1024 characters in your path variable and try to use setx, your environment variable will get corrupt.
Since it mentions shell I'm assuming we're already using power shell or windows terminal from the beginning so I recommend something like this command instead of setx

[Environment]::SetEnvironmentVariable("Path", $env:Path +";C/folder directory", "Machine")

I know setx is easier to use but it's bit me more times than I can count

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions