
透過使用,setx "%path%;c:\whateverFolder
我只需將系統路徑變數複製到用戶一,因此複製它,並且僅在其之後添加所需的資料夾。是否可以將其新增至系統路徑變數。不到使用者路徑,如果是,我該怎麼做?
答案1
您仍然可以使用setx指令,透過新增參數/m
:
/m Specifies to set the variable in the system environment. The default setting is the local environment.
像這樣:
setx /M path "%path%;C:\your\path\here\"