Ok.. Im at work , and dealing with 2300 machines.
I need the easiest way possible to get the computers name.
for example.. say the pc's name is GA2032d1 I need to be able to simple get that name, and be able to manipulate the characters in it. So for now just getting the computers name would be great !

Can anyone help ? It does not have to necessary be c++, but I will be donig my manipulations using c++.

not using .net compiler. Using BloodSheds free c++ compiler.
I guess Im going to have to go to the .net world with all the rest if no one can help.

If you need to get the name locally (your program runs on the machine whose name you want to get) you can use gethostname, see this example. If you need to do it remotely (your program runs on one single machine and needs to get names of all machines in that network) I suggest you check up one of the system administration forums.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.