摘要: 以前曾用 GetWindowsDirectory、GetSystemDirectory、GetTempPath 等函数获取系统常用文件夹;也用过SHGetSpecialFolderLocation、SHGetPathFromIDList函数获取过更多常用路径;但这都不如用 GetEnvironmentVariable 获取系统变量来得快.//譬如 %WINDIR% 是表示系统目录的系统变量, 可以这样获取:var s: string;begin s := GetEnvironmentVariable('WINDIR'); ShowMessage(s); {C:\WINDOWS} 阅读全文
posted @ 2014-01-06 10:32 atmal 阅读(5530) 评论(0) 推荐(0) 编辑