Hi

Thanks a lot, Dave, for the program. I was eager to try it, so I downloaded 
OpenWatcom and compiled my first DOS program :-))
Had some time, while my son listened to some audiobook called "Mama Muh". :-)

I copied the program lines to a file m2wat.c and used these settings:
 
wcc m2wat /ms
wlink system com file m2wat

(Maybe anyone has better/more appropriate compile options??)

The resulting binary is m2wat.com which can be downloaded here, in case anyone 
else wants to test it.
http://lazybrowndog.net/freedos/M2WAT.COM

I tested it and everything seems to work.

I like a lot that M2WAT.COM looks for the environment settings

SET MTCPCFG=C:\FDOS\MTCP.CFG
SET WATTCP.CFG=C:\FDOS

in AUTOEXEC.BAT which allows me to use it from any directory. And also allows 
to change the directories for the config files of WATTCP and mTCP programs in 
the future.

The program works as expected. Everything else in WATTCP.CFG stays intact and 
the settings are made in the original lines in WATTCP.CFG (and not at the 
beginning, as my batchfile did it). 

The two variations of the IP setting ("my_ip = n.n.n.n or "IP = n.n.n.n") are 
also correctly interpreted - M2WAT.COM uses the original name and just 
exchanges the IP address. So this is also working fine.

The only thing I'd put on the wishlist would be a backup of the original 
WATTCP.CFG to WATTCP.BAK.

As the results of M2WAT.COM are trivial to review (just the four settings for 
IP/my_ip, netmask, nameserver and gateway in WATTCP.CFG) I would say the 
program is ready and working. 

Mike, what do you think - would it be a good idea to ship it with your mTCP 
package? It would help DOS users who have a DHCP server and use mTCP programs 
but also WATTCP programs that need fixed IPs. (Or like in my case, use the DHCP 
server built in VirtualBox which is not recognized by WATTCP programs). 

I know this might not be a big number of users ;-)

Thanks again to Dave for this little program!

Ulrich





------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to