|AFAIK, batch can't do IF and ELSE on the same line. Also if you want to use multiple commands in an IF, you need to use parentheses (except if you use & and/or &&, but that gets messy really quick)|
set default=iperf.exe -s -w 512k
set /p type="Please enter u for udp, enter for default tcp: "
if '%type%'=='' (
echo "iperf command: %default% "
) else (
if '%type%'=='u' (
Don't worry if plan A fails, there are 25 more letters in the alphabet ;)
message edited by RainBawZ