跳轉到內容

Rebol 程式設計/set-env

來自華夏公益教科書,開放的書籍,為開放的世界
SET-ENV var value 

設定作業系統環境變數的值。

SET-ENV 是一個原生值。

  • var -- 要設定的變數(型別:字串)
  • value -- 要設定的值,或 NONE 以取消設定它(型別:字串無)

原始碼

[編輯 | 編輯原始碼]
set-env: native[
    {Sets the value of an operating system environment variable.} 
    var [string!] "Variable to set" 
    value [string! none!] "Value to set, or NONE to unset it"
]
華夏公益教科書