0

I'm trying to edit an environment variable, but i'm getting an error that

'setx' is not recognized as an internal or external command, operable program or batch file.

I can use the set command, but setx is no-go. I'm on Windows 8.1

Any help is wanted.

2 Answers2

0

I think you're using it wrong. Just typing setx isn't going to cut it, as the command prompt will believe that it is a program. As it doesn't find it, it gives off that error message.

The correct ways to use setx can be seen here, for instance. The main part is that after setx you have to append the name and value of the variable you want to alter, for it to be evaluated as an internal command.

0

Since Setx is a system tool that usually is located in \Windows\System32 you need to check if the \System32 was removed from PATH in your Environment Variables (see What are PATH and other environment variables, and how can I set or use them?). Normally this shouldn't have happened.

If it is not in there, then add C:\Windows\System32 back to your PATH.