transcad Posted April 19, 2012 Posted April 19, 2012 Is it possible to find out computer's name? Quote
Tharwat Posted April 19, 2012 Posted April 19, 2012 Is it possible to find out computer's name? Sure .. (getenv "computername") Quote
MSasu Posted April 19, 2012 Posted April 19, 2012 Alternatively, may check the DOSLib pack, it is a freeware. (dos_computer) Quote
ReMark Posted April 19, 2012 Posted April 19, 2012 Click on the Windows START button, open the CONTROL PANEL then click on SYSTEM. You'll see the Computer Name, Full Computer Name, Computer Description and Domain plus a bunch of additional information. I thought all Windows users knew this. Quote
MSasu Posted April 19, 2012 Posted April 19, 2012 I will guess that OP was looking for a programmatically solution, thus the area were thread was posted. Quote
ReMark Posted April 19, 2012 Posted April 19, 2012 Could have had the info at hand in less time than it took to type the question but I do see your point. Thanks. Quote
Tharwat Posted April 19, 2012 Posted April 19, 2012 Some people using these functions to guarantee the code is not open for all as a security checks . just an example . Quote
transcad Posted April 19, 2012 Author Posted April 19, 2012 Yes, is for using in autolisp code and for security...thanks guys! Quote
Tharwat Posted April 19, 2012 Posted April 19, 2012 Yes, is for using in autolisp code and for security...thanks guys! Thanks for the approval Quote
ReMark Posted April 19, 2012 Posted April 19, 2012 Security? There is no such thing when it comes to code or computers. Thanks for the chuckle. Have a sparkling day. Quote
MSasu Posted April 19, 2012 Posted April 19, 2012 User and workstation names are the easiest features to replicate when someone is trying to port your routine on other system. Quote
ReMark Posted April 19, 2012 Posted April 19, 2012 You win. I was just funning with you. Have a good one. Quote
MSasu Posted April 19, 2012 Posted April 19, 2012 Another inconvenience, you will need to re-compile and deploy the routine(s) each time add a new post. Quote
MSasu Posted April 19, 2012 Posted April 19, 2012 You win. I was just funning with you. Have a good one. Opps! I thought I was referring to OP's solution. A good day to you, too! Quote
Bill Tillman Posted April 19, 2012 Posted April 19, 2012 The OP may have been misunderstood. The projects I'm working on rely heavily on automation and filling in the users' name in the title block is an especially useful item. (setq username (strcase (substr (getvar "LOGINNAME") 1 2))) I can see how one day they may ask me to include information on which workstation the drawing was prepared at as well. So I for one learned something useful with this. Quote
Recommended Posts
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.