Please look that the attached, I had this running a long time ago on W2K server, but when we upgraded, it seems as if the syntax of the Choice command have changed.
I keep receiving errors on the syntax of the choice command.
:: If no parameter was passed, then set the host to old system.
if (%1) == () Set Host="184.108.40.206"
choice /C:pabcdefghijklmnoqrstuvwxyz0123456789.- /N /T:N,15 /D:P /M "Type 'P' to ping the
host again ... Anything else to Exit."
if %errorlevel% == 1 goto Top