關於環境變數的使用... - Windows
By Hamiltion
at 2009-11-11T17:03
at 2009-11-11T17:03
Table of Contents
SystemRoot 這個變數代表 Windows 的安裝目錄,一般為 C:\Windows
ProgramFiles 則是應用程式的預設安裝位置,一般為 C:\Program Files
在 Path 裡面,%SystemRoot% 可以正確對應到 C:\Windows
可是用 %ProgramFiles% 卻沒有作用,XP、Vista、Win7皆是如此,
是我的寫法有誤嗎?
雖然我可以直接寫絕對路徑下去,但還是想問問看有沒有辦法用環境變數。
註:我在命令提示字元輸入 echo %SystemRoot% 還有 echo %ProgramFiles%
都有輸出正確的路徑。
--
ProgramFiles 則是應用程式的預設安裝位置,一般為 C:\Program Files
在 Path 裡面,%SystemRoot% 可以正確對應到 C:\Windows
可是用 %ProgramFiles% 卻沒有作用,XP、Vista、Win7皆是如此,
是我的寫法有誤嗎?
雖然我可以直接寫絕對路徑下去,但還是想問問看有沒有辦法用環境變數。
註:我在命令提示字元輸入 echo %SystemRoot% 還有 echo %ProgramFiles%
都有輸出正確的路徑。
--
Tags:
Windows
All Comments
By Suhail Hany
at 2009-11-12T22:24
at 2009-11-12T22:24
By Michael
at 2009-11-16T12:22
at 2009-11-16T12:22
By Annie
at 2009-11-19T00:40
at 2009-11-19T00:40
By Oscar
at 2009-11-22T05:55
at 2009-11-22T05:55
By Harry
at 2009-11-27T00:28
at 2009-11-27T00:28
By Ivy
at 2009-11-30T14:30
at 2009-11-30T14:30
Related Posts
windows7沒聲音
By John
at 2009-11-11T16:56
at 2009-11-11T16:56
[WIN7] 用PCMAN或KKMAN
By Dorothy
at 2009-11-11T15:42
at 2009-11-11T15:42
windows7沒聲音
By Edith
at 2009-11-11T15:12
at 2009-11-11T15:12
虛擬記憶體設定
By Jack
at 2009-11-11T15:09
at 2009-11-11T15:09
輸入法切換
By Mia
at 2009-11-11T14:40
at 2009-11-11T14:40