How to Determine User's L
Good news from at least one part of the economy. They have hired three new detailers for this department and the IT guys built some new computers for them. For some reason, the IT likes to build the new systems with a D:\ main drive, not C:\....just to be silly I guess.So my question is that somewhere I once saw a short routine whereby the LISP program determined what was the main drive, as well as the other drives in the Windows PATH variable. Does anyone have a line on this? Try this ...
(getenv "SystemDrive") Off topic.
This is because most hackers or viruses try to access the C: drive on computers. By changing it over to a less common drive letter the less likely it is to be hacked. Thanks. I can use that. What I saw some months ago was a snippet where someone used mapcar to look through a list of drives to find out which ones were in the user's path. I searched and found this http://hyperpics.blogs.com/beyond_the_ui/2005/12/which_drives_ar.html but it's a rather complex block compared to what I saw before. The code was done by a programmer who worked here several years ago. They tell me she left under bad terms so don't plan on asking her for advice. This may be helpful
(vl-load-com)(setq *files*(vla-get-files(vla-get-preferences (vlax-get-acad-object))))(setq paths (vla-get-SupportPath *files*))(princ paths)
页:
[1]