如何获得当前操何作系统盘符和安装目录
用lsp程式如何获得当前操作系统盘符和安装目录 1.当前操作系统盘符配合doslib
dos_drive
Returns the current drive or changes the current drive to the one specified.
Syntax
(dos_drive )
Parameters
drive
The drive name (for example, C:, D:). If not specified, the current drive is used.
Returns
A string identifying the current or new drive if successful.
nil on error.
Examples
Command: (dos_drive)
"C:"
Command: (dos_drive "d:")
"D:"
2.安装目录??
指的是甚麼?? 操作系统安装目录,指windows安装目录,但有的不叫windows而为winnt等.
以上获取当前操作系统盘符之回贴看不懂!请明示!
谢谢大侠回贴! http://www.mjtd.com/mcdown/list.asp?id=191 安装目录
(getenv "Windir") ; 字串-Windows路徑
(getenv "SystemDrive");字串-系統驅動器 谢谢龙版主!!!!!! (vlax-get-property (vlax-get-acad-object) 'Path)
页:
[1]