Page 1 of 1
Networked PCs
Posted: Sun Aug 22, 2010 3:54 am
by deebee
Is it possible to get and return the names of PCs on a local network? I've checked the docs and looked at the global variables list but couldn't find any thing on the subject.
Re: Networked PCs
Posted: Sun Aug 22, 2010 6:36 am
by mwieder
does this do the trick for you?
Re: Networked PCs
Posted: Sun Aug 22, 2010 1:22 pm
by Mark
Hi Deebee,
Could tell us a little more about what you want to do? I could help you with a simple broadcasting script. You could use such a script to find all copies of your application on a network, for example. An app of mine that does this is
Clipboard Link. Although you are talking about "PC's", I could imagine that you want to find Windows, Mac OS X as well as Linux machines.
Best,
Mark
Re: Networked PCs
Posted: Sun Aug 22, 2010 8:59 pm
by deebee
mwieder,
I'm totally green to programming so I'll have to try that after work tonight.
Thanks!
Mark,
I'm just trying to get the names of the computers on the LAN to store them into an array or variables. Windows only, as I'm just trying to reinvent the wheel and do my own GUI to send commands to windows shutdown. I figured it might be something fairly simple to do to help me learn a bit.
Thanks!
Re: Networked PCs
Posted: Sun Aug 22, 2010 9:04 pm
by Mark
But, Deebee, why do you want that? Just for the fun of displaying the names?!
Mark
Re: Networked PCs
Posted: Sun Aug 22, 2010 11:01 pm
by deebee

Nope, i'd like to put them in a string to send to shutdown.exe. Or at least try to.

I'd like to make something similar to shutdown -i.
Re: Networked PCs
Posted: Mon Aug 23, 2010 2:54 am
by deebee
mwieder wrote:does this do the trick for you?
This actually accomplishes what I want, thank you!
Re: Networked PCs
Posted: Mon Aug 23, 2010 12:01 pm
by Mark
Thanks for explaining, Deebee. It always helps to know what people are trying to achieve.
Best,
Mark