Bing sent me to the DosTips.com forum trying to find the magic sauce to redirect STDERR and STDOUT to the same pipe. That is 2>&1, in case you are wondering. Since I was there I took a look at the unanswered questions and found one.
A guy asked:
Am trying to figure out how to make a batch file that will give a prompt to enter a PC name or printer and and perform the ping ******-t command.[...]
set /P Target=Please enter the name of the host to ping:
If you want to be really sexy:
set /P target=Please enter the name of the host to ping:
if "%target%"=="" (
echo A target is required, or you can press CTRL-C to cancel
Glad to help.
I like batch files. This is fun for me.