I'm trying to change the environment variable in windows 8, however the option to change is inactive.
I tried to change the PATH using the command line, however the path never updated when I closed the command line.
I'm using an administrator account.
Is there anyone who encountered such problem ?
Update, Thanks to @David, I tried the cmd command:
Please note that I'm using brackets and there are no spaces in this path ( the path exists on my computer )
Now I get an error from the command line
ERROR: Invalid syntax. Default option is not allowed more than '2' time<s>
Which is usually refer when you have space in the new path.
Beside, when I try:
SETX = PATH=%PATH%
I get the same error.
Any suggestion what should I do next ?
Update 2, I changed to command according to @Daniel
Now the command is the following
SETX PATH="%PATH%;D:\Shahar\CodingLibraries\opencv\" /m
I get an error
I tried the follow,
I got the same error,
I still get a syntax error ... I'm nearly giving up on this...
I tried the same command with back slashes
SETX PATH="%PATH%;D:/Shahar/CodingLibraries/opencv/" /M
Now I get an error that the Length of the command line argument should not exceed 255 characters
Any suggestions on what to do next ? Does the PATH is limit by 255 characters or that's a cmd command limitation ?