--------------------------------------------
!An excellent website.
![:clap:](http://reboot.pro/public/style_emoticons/default/clap.gif)
--------------------------------------------
Thank you very much.
--------------------------------------------
"May I ask you to provide an example:
Why do you need tftplaunch and ipcalc?"
----------------------------------------------
Thanks and sure
You don't really need both but I thought it might be cool to start a generic tool, especially as it would be easy to add some rudimentary IP arithmetic later on such as /AND /OR /PLUS /MINUS and pick up a previously generated numeric value from a previous call etc. I can see that it might be handy to mask off parts of a detected address and then add on an octet value or increment an address value by +1, say, via batch files
There's an example batch file in the ZIP download but basically...
ECHO Testing IPCalc 192 168 2 100 (not /net - little endian)
FOR /F "tokens=*" %%i in ('IPCalc.exe 192 168 0 100') DO SET IPVALUE=%%i
ECHO Environment variable IPVALUE was set to %IPVALUE%
ECHO Testing IPCalc 192 168 2 100 (/net - big endian)
FOR /F "tokens=*" %%i in ('IPCalc.exe 192 168 0 100 /net') DO SET IPVALUE=%%i
ECHO Environment variable IPVALUE was set to %IPVALUE%
There's a /NET switch to generate in "big-endian" (network) format as used by tftpd32 or omit this to generate in standard (x86) little-endian format. I didn't finish it till 4am and was a bit sleepy by then, so fingers crossed it's debugged properly LOL (the result can be displayed either in "C" unsigned long, signed long or HEX string format. A CRLF isn't added by default in order to ease use with ENV vars. /CRLF adds one for display purposes.
I'll add the basic math stuff when I get a moment
![;)](http://reboot.pro/public/style_emoticons/default/wink.png)
(*Sorry, my popup/script blocker won't let me quote stuff)