回望南山
记忆痕迹可以鲜明, 回望往事如数家珍——
posts - 177,  comments - 54,  trackbacks - 0
 

Returns the string value assigned to a system environment variable
  (getenv variable-name)
Arguments
  variable-name
A string specifying the name of the variable to be read. Environment variable names must be spelled and cased exactly as they are stored in the system registry.

Return Values
   A string representing the value assigned to the specified system variable. If the variable does not exist, getenv returns nil.

Examples
  Assume the system environment variable ACAD is set to /acad/support and there is no variable named NOSUCH
  Command: (getenv "ACAD")
  "/acad/support"
  Command: (getenv "NOSUCH")
  nil

Assume that the MaxArray environment variable is set to 10000:
Command: (getenv "MaxArray")
"10000"


System

系统相关

(getenv "ComputerName")

字符串-计算机名

(getenv "COMSPEC")

字符串-Cmd.exe路径

(getenv "MaxArray")

整数-最大排列

(getenv "OS")

字符串-操作系统

(getenv "Path")

字符串-系统搜索路径

(getenv "Pathext")

字符串-执行语句扩展名

(getenv "SystemDrive")

字符串-系统驱动器

(getenv "SystemRoot")

字符串-系统根路径

(getenv "Temp")

字符串-临时路径

(getenv "TMP")

字符串-临时路径

(getenv "UserName")

字符串-用户登录名称

(getenv "UserProfile")

字符串-当前用户配置文件路径

(getenv "Windir")

字符串-Windows路径

posted on 2008-03-18 17:29 深藏记忆 阅读(217) 评论(0)  编辑  收藏 所属分类: Vlisp之韵

飘过是缘,相识最真

订阅到抓虾
google reader
gougou


点击这里给我发消息


<2008年3月>
2425262728291
2345678
9101112131415
16171819202122
23242526272829
303112345

常用链接

留言簿(5)

随笔分类

随笔档案

文章分类

文章档案

相册

收藏夹

八面来息

天天充电

同行者

积分与排名

  • 积分 - 58699
  • 排名 - 61

最新评论

阅读排行榜

评论排行榜