How to setup my system path: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 14: Line 14:


如果使用命令提示字元,需要關閉再重開啟命令提示字元,才能套用新的路徑設定。
如果使用命令提示字元,需要關閉再重開啟命令提示字元,才能套用新的路徑設定。
如何驗證新的路徑設定: {{kbd | key= echo %PATH%}} ({{Win}}) (相關頁面: [[Alternative_Linux_commands#specify_the_location_where_Linux_or_MS-DOS_looks_when_using_a_command | specify the location where Linux or MS-DOS looks when using a command]])





Revision as of 15:48, 3 May 2018

如何設定系統PATH

  • Windows 檔案總管 -> 在「我的電腦」按滑鼠右鍵 -> 選擇選單的「內容」
  • 「系統內容」視窗 -> 切換到「進階」標籤 -> 點選「環境變數」按鈕
938375025_50edbc0819_o.png
(Image host on Flickr)
  • 「環境變數」視窗 -> 點選「系統變數」的「Path」 -> 點選「編輯」按鈕
938375087_0857140c5d_o.png
(Image host on Flickr)

Path內有多個資料夾路徑。不同資料夾用分號(;)間隔,例如

C:\Program Files\MiKTeX 2.6\miktex\bin;c:\usr\bin;C:\usr\site\bin;C:\usr\bin;

如果使用命令提示字元,需要關閉再重開啟命令提示字元,才能套用新的路徑設定。

如何驗證新的路徑設定: echo %PATH% (Win Os windows.png ) (相關頁面: specify the location where Linux or MS-DOS looks when using a command)


相關資料