Jump to content

(getenv "UserName") vs. (getenv "username")


raj2ras

Recommended Posts

Discovered a strange issue on my network where (getenv "UserName") and (getenv "username") with just a change in case return 2 completely different values!

 

(getenv "UserName") always returns same name on all machines! Can someone please test?

Link to comment
Share on other sites

But the %username% variable is set by the OS. At CMD prompt both echo %UserName% and echo %username% return the same value. Also the UserName variable is not explicitly set anywhere.

Link to comment
Share on other sites

But the %username% variable is set by the OS. At CMD prompt both echo %UserName% and echo %username% return the same value. Also the UserName variable is not explicitly set anywhere.

 

You've assumed that AutoCAD Environment Variable == Windows OS Environment Variable.

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...