This is a little utility to automatically set IP configurion settings in a
WATTCP or mTCP configuration file (WATTCP and mTCP are DOS TCP/IP packages).

The new settings are determined by performing a DHCP (Dynamic Host
Configuration Protocol) session with a DHCP server on your LAN.

The following configuration items are set:

 WATTCP        mTCP           Description
 --------------------------------------------------
 MY_IP=        IPADDR         Local IP address
 NETMASK=      NETMASK        Subnet mask
 GATEWAY=      GATEWAY        Gateway IP address
 NAMESERVER=   NAMESERVER     DNS server IP address
               LEASE_TIME     DHCP lease time

The items are changed by reading the entire file into memory, and re-writing
it with lines containing the above configuration items replaced. All other
lines in the file are read and restored without modification. A maximum file
size of 64k (65535 bytes) containing individual lines of up to 256 bytes each
can be processed.

If neither '/W' or '/M' options are used, DHCP does not update any file, but
simply displays the DHCP session results.


Use:    DHCP    [options [file]]

opts:   /W              = update Wattcp configuration file
        /M              = update Mtcp   configuration file
        /R              = Remove  config items not supplied by DHCP server
        /F              = Fill-in config items not supplied in original file
        M=SEDIFC       = Messages: S)td E)rr D)hcp I)p F)ile C)lock    [SE]
        T=n             = Timeout (seconds) before fail                 [10]
        P=xx            = Packet driver interrupt (hex)                 [60]

Default file names:  /W='WATTCP.CFG'  /M='MTCP.CFG'*

If filename does not contain a drive or directory, it is assumed to reside
in the same directory as DHCP.EXE (Use '.\filename' for current dir).

*If MTCPCFG envronment variable exists, it is assumed as the default full
 path and name of the configuration file.

Dave Dunfield - Apr 27 2011
