get computer name

teqy's icon

hello

I have an old windows xp machine running; and I am trying to bang out
the 'computer name' into a message box. The PC computer name is found in system properties tab. (it's called 'full computer name')

I have tried net.ip and net.domain with no luck, I can only get 'localhost'

thanks for help : )

hardcoder's icon

Maybe it's possible nowadays using node.js in Max, see help for node.script.

Source Audio's icon

What max version are you running on that PC ?
You can try jasch's getenv object.
http://jasch.ch/dl/jasch_objects_0.3_win.zip
this one works on max 4-6 and xp
I am not sure about older shell external for win.
Before that one had DOShack or fe.shell, both java based
hostname is usual message in command prompt to get computer name.

pdelges's icon

My first attempt to do something with node.js during this confinement was to get the hostname of my computer (instead of using shell). I simply adapted the filesystem example.

filesystem.zip
application/zip 6.51 KB

pdelges's icon

BTW, I almost forgot there is also the [gestalt] object, and its host message.

hardcoder's icon

[gestalt] is cool. Did not know about that object.

It's just sad, that it destroys the backslashes on Windows, at least as shown in the gestalt.maxhelp example

"LOCALAPPDATA" : [ "C:UsersHardcoderAppDataLocal" ],
Roman Thilenius's icon


gestalt is a system call related to the MacOS 6 or 7 nanokernel and several of the classic mac os´s extensions (such as audio and network drivers but also most hardware specs) and present on macOS until today.

gestalt is a german word and means shape, figure, often connoted negative (freak, ugly person?) which i think makes it really funny when you look at an oldworld mac´s design.