Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 12-05-07   #1 (permalink)
Mobo Master
 
ExiledDuke's Avatar
 
intel ati

Join Date: Sep 2007
Location: Vista Shell, 0X800000FE
Posts: 218

Rep: 25 ExiledDuke is acknowledged by some
Unique Rep: 22
Trader Rating: 1
Default Computer Name / IP Address alteration

I am a neophyte coder (I can do a hello world alert in C++ and know my way around batch files, so I know little)

How would I write a batch file / exe that would change the computer name/Ip address (instead of having to go through all this bullshens of opening all the configuration windows)? It does not need to be modular.

I have 32 machines, and the way we image them does not alter the ip address or computer name, so either it has to be done manualy, or this way. 32 .bat's or .exe's that each change those two values to specific ones would be best.

like...

101.exe changes computer name to Lair01 and IP to 192.168.0.101
102.exe changes computer name to Lair02 and IP to 192.168.0.102
...
132.exe changes computer name to Lair32 and IP to 192.168.0.132

It should be simple enough, but I don't even know where to look for the commands.
__________________
Quote:
Originally Posted by whodat View Post
If paul doesn't kill you, I will.
If someone gives you help, remember to rep!

~Louisiana Drinking Overclocking Club!~

System: Desktank
CPU
C2D Q9300
Motherboard
Asus P5Q Pro
Memory
4x2 GB OCZ HPC
Graphics Card
VisionTek 4870
Hard Drive
2x250gb and 2x160gb RAID 0 Arrays
Sound Card
X-Fi & Barracuda AC-1
Power Supply
PC P&C Silencer Quad 750w
Case
NZXT Tempest
CPU cooling
Zalman 9700
OS
Vista Ultimate x64 SP1
Monitor
DELL 2208WFP + 2007FP US
ExiledDuke is offline   Reply With Quote
Old 12-05-07   #2 (permalink)
Fear the Wombat
 
stanrc's Avatar
 
amd nvidia

Join Date: Apr 2007
Location: Stafford, VA
Posts: 4,771

Folding Team Rank: 87
Hardware Reviews: 7
Trader Rating: 5
Default

here is how you would change the IPs through a batch file

Quote:
netsh interface ip set address name="Local Area Connection" source=static addr=111.222.333.444 mask=255.255.255.255
then you could probably put that inside a loop to count up and change the ip every iteration

i'm not sure about computer name though, i will look into it.

this might be helpful

http://www.techimo.com/forum/archive...p/t-33483.html

System: VM Server
CPU
X2 3600+ 2.5
Motherboard
ASRock
Memory
8 GB G.Skill
Graphics Card
Integrated
Hard Drive
3x 320 GB, 500 GB
Power Supply
500w Antec Earthwatts
OS
Server 2008
stanrc is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 03:08 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.24074 seconds with 8 queries