If backward compatibility is not a concern, then use the Vista choice options as
/c qsp. Both
choice.exe (NT prior to Vista) and
choice.com (DOS) will break with a space between the /c switch and the choices.
Repeating the last suggestion, use
@echo off at the top of your file and remove the @ from the other echo statements.
To prevent writing duplicate code, put the
ipconfig /renew and
ipconfig /release statements in subroutines where you can
call them at the appropriate times.
anyway I'm currently trying to remove some <junk> an repost it after I add windsock repair...but actually I don't know where to put it in the code (after ip renew? after...)
Repairing the winsock catalog is done with the
netsh utility. Not sure you should put it here or design a batch application for
netsh separately.
Good luck.