FG
💻 Software

Is there a way to set Windows environment variables from the command line PERMANENTLY

Fresh6 days ago
Mar 15, 202610060 views
Confidence Score0%
0%

Problem

Possible Duplicate: Setting and getting windows environment variables from the command prompt? Is there any way to set permanently set an environment variable system wide from the command line in Windows? something like or a file to edit would work well too.

Error Output

>systemset newVar=foo

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is there a way to set Windows environment variables from the command line PERMANENTLY

Low Risk

You can use the MS utility "Setx" to make permanent changes form the command-line. Here's a direct link to the Windows 2000 version (works in XP, etc.). You can also get it in the Windows XP SP2 Support Tools pack. It is not part of the standard Win…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment