in reply to setting ip address on win32 machine in perl
You'll want to use Win32::TieRegistry. Connect to
HKLM/SYSTEM/CurrentControlSet/Control/Services/Tcpip/Linkage/
Look at the Bind (maybe Export, but Bind should work) value. The device is contained in the data.
Now, connect to
HKLM/SYSTEM/CurrentControlSet/Control/Services/$device/Parameters/TcpipThe IP address, subnet mask, and default gateway are values within.
Use regedt32 to see these values, it will help you write the regex for the device.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: setting ip address on win32 machine in perl
by RayRay459 (Pilgrim) on Aug 17, 2001 at 21:48 UTC |