Invalid syntax with setx

前端 未结 3 2010
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 23:52

I used the setx command to set OGRE_HOME:

setx OGRE_HOME D:\\Program Files\\OgreSDK

Now I need to change to value

3条回答
  •  暖寄归人
    2020-12-31 00:34

    Command Prompt is giving you that error because you forgot the quotation marks. You should’ve typed:

    setx OGRE_HOME “D:\Program Files\OgreSDK”
    

    To see all the values you’ve already set, enter either:

    reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
    

    OR

    reg query HKEY_CURRENT_USER\Environment
    

提交回复
热议问题