in reply to setting ip address on win32 machine in perl

Never seen any modules to do this. Here's how I'd do it on NT 4 (and I hope there's an easier way than this...)

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
    Thats what my original idea was. A Reg Hack. I too was looking for something more perlish :). Thanks again for your input though. I do appreciate it. Ray