I've found that placing the /M
switch early does the trick, even though they want you to place it at the end.
So for instance, this works:
setx /M PATH "%PATH%;C:\AddYourPathHere"
But this doesn't:
setx PATH "%PATH%;C:\AddYourPathHere" /M
I've found that placing the /M
switch early does the trick, even though they want you to place it at the end.
So for instance, this works:
setx /M PATH "%PATH%;C:\AddYourPathHere"
But this doesn't:
setx PATH "%PATH%;C:\AddYourPathHere" /M