Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Network Name

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
321 Views, 7 Replies

Network Name

Can anyone tell me how to obtain a computer's "network name" using using
Autolisp?
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

(getenv "computername")

?


"TRJ" wrote in message news:5929019@discussion.autodesk.com...
Can anyone tell me how to obtain a computer's "network name" using using
Autolisp?
Message 3 of 8
Anonymous
in reply to: Anonymous

Jason - thanks for the response. I should have asked, Can anyone telme how
to obtain a computer's network name from the operating system?

I'm sure you know that if you (setenv "computername" "bogus") a subsequent
call to (getenv "computername") will return bogus. All the while, the
computer's "real" network name remains unchanged.

So I'm trying to get to the system level computer name.

"Jason Piercey" wrote in message
news:5929022@discussion.autodesk.com...
(getenv "computername")

?


"TRJ" wrote in message news:5929019@discussion.autodesk.com...
Can anyone tell me how to obtain a computer's "network name" using using
Autolisp?
Message 4 of 8
Anonymous
in reply to: Anonymous

TRJ wrote:
> Jason - thanks for the response. I should have asked, Can anyone telme how
> to obtain a computer's network name from the operating system?
>
> I'm sure you know that if you (setenv "computername" "bogus") a subsequent
> call to (getenv "computername") will return bogus. All the while, the
> computer's "real" network name remains unchanged.
>
> So I'm trying to get to the system level computer name.

Is DOSlib's dos_hostname any better for your needs?

Alternately, you could go digging in the Windows Registry.

--
Message 5 of 8
Anonymous
in reply to: Anonymous

I don't want to use DOSlib. I'm seeking a way to do this with Autolisp.

"Martti Halminen" wrote in message
news:5929248@discussion.autodesk.com...
TRJ wrote:
> Jason - thanks for the response. I should have asked, Can anyone telme how
> to obtain a computer's network name from the operating system?
>
> I'm sure you know that if you (setenv "computername" "bogus") a subsequent
> call to (getenv "computername") will return bogus. All the while, the
> computer's "real" network name remains unchanged.
>
> So I'm trying to get to the system level computer name.

Is DOSlib's dos_hostname any better for your needs?

Alternately, you could go digging in the Windows Registry.

--
Message 6 of 8
Anonymous
in reply to: Anonymous

TRJ wrote:
>.......... Alternately, you could go digging in the Windows Registry.

Smart thinking.

In Windows XP Registry I found these keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName

Perhaps read the value of "ComputerName" under one of these keys.

Regards,

Rick Francken
Message 7 of 8
Anonymous
in reply to: Anonymous

How can I retrieve a Windows registry values with Autolisp?

"Rick Francken" wrote in message
news:5929635@discussion.autodesk.com...
TRJ wrote:
>.......... Alternately, you could go digging in the Windows Registry.

Smart thinking.

In Windows XP Registry I found these keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveCompu
terName
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerNam
e

Perhaps read the value of "ComputerName" under one of these keys.

Regards,

Rick Francken
Message 8 of 8
Anonymous
in reply to: Anonymous

Thanks to all for your input. To answer my own question:
(vl-registry-read reg-key [val-name])

"TRJ" wrote in message news:5929752@discussion.autodesk.com...
How can I retrieve a Windows registry values with Autolisp?

"Rick Francken" wrote in message
news:5929635@discussion.autodesk.com...
TRJ wrote:
>.......... Alternately, you could go digging in the Windows Registry.

Smart thinking.

In Windows XP Registry I found these keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveCompu
terName
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerNam
e

Perhaps read the value of "ComputerName" under one of these keys.

Regards,

Rick Francken

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost