Jump to content

Computer name?


ketongin

Recommended Posts

Here are a few other System-related Environmental Variables accessible from ACAD which may be useful.

 

Note that all variable names are case-sensitive.

 

(getenv "Path")         ; [sTR] System Search paths

(getenv "COMSPEC")      ; [sTR] cmd.exe Path

(getenv "UserName")     ; [sTR] User logon name

(getenv "Temp")         ; [sTR] Temp path

(getenv "TMP")          ; [sTR] Temp path

(getenv "ComputerName") ; [sTR] Computer name

(getenv "Windir")       ; [sTR] Windows path

(getenv "OS")           ; [sTR] Operating System

(getenv "UserProfile")  ; [sTR] Current user profile path

(getenv "Pathext")      ; [sTR] Executable extensions

(getenv "SystemDrive")  ; [sTR] System drive

(getenv "SystemRoot")   ; [sTR] System root path

  • Like 1
Link to comment
Share on other sites

thank you Thawat and Lee. Much more than I asked for. If you guys are always online, you would be much faster that googling stuff. I don't know what would it be on the lisp community without you guys. Thanks again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...