Windows 7:為命令列建立捷徑/短命令

Windows 7:為命令列建立捷徑/短命令

我的 Windows 命令列無法辨識命令 openssl。因此我從這裡下載了它http://deanlee.cn/programming/openssl-for-windows

但現在,每次我想使用這個 openssl 工具時,我都必須在命令列中寫入以下內容:http://deanlee.cn/programming/openssl-for-windows

/Users/"myName"/Desktop/opensslforwindows/bin/openssl

為了使用這個指令我只想寫

openssl

應該不會太難,但我沒有很多命令列經驗,而且我無法透過谷歌找到這些資訊。

答案1

右鍵點選“電腦”,前往“屬性”、“進階系統設定”、“進階”標籤。按一下“環境變數”。在使用者變數中找到“PATH”,並將“;/Users/"myName"/Desktop/opensslforwindows/bin/openssl”加入其末尾。

答案2

您需要將 /Users/"myName"/Desktop/opensslforwindows/bin/openssl 新增至您的環境路徑。

相關內容