
Firefox 不在我的 %PATH% 中,所以
c:\> where firefox
告訴我,沒有找到 Firefox,也沒有找到
c:\> firefox
啟動瀏覽器。
但是,如果我輸入
c:\>start firefox
Windows(或cmd.exe)能夠找到可執行檔。這怎麼樣?
答案1
啟動命令不僅僅依賴%PATH%
.特別是,它還會尋找列出已知應用程式的註冊表項,即HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\
以及HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\
.