tango.sys.Environment
License:
BSD style: see license.txt
Version:
Feb 2007: Initial release
Author:
Deewiant, Maxter, Gregor, Kris
-
struct Environment ¶#
- 展示系统环境设置,连同一些简单的实用程序。 void exception(char[] msg) [private, static] ¶#
- 抛出一个异常。 FilePath exePath(char[] file) [static] ¶#
- 返回提供的可执行程序文件的完整路径位置,视情况通过 PATH。
- 如果提供的文件名没有找到返回 null。 char[] get(char[] variable, char[] def = null) [static] ¶#
- 如果变量不存在返回提供的 'def'值。 void set(char[] variable, char[] value = null) [static] ¶#
- 如果值为 null或空就清除变量。 char[][char[]] get() [static] ¶#
- 以一个关联数组获得所有环境变量。 void cwd(char[] path) [static] ¶#
- 设置当前工作目录。 char[] cwd() [static] ¶#
- 获得当前工作目录。