I once wrote a batch file virus... it was mostly a proof of concept because the only programming documentation I had access to was an MSDOS 5 manual. It was a great manual!
:label
net send username
goto label
Someone then substituted * for username and flooded the network. I got to spend a week in in school suspension for that!!!