ping google.com -i 255 -w 500 >> C:\puke.ini
findstr /b "reply" C:\puke.ini >> C:\piss.ini
del C:\puke.ini
notepad C:\piss.ini
pause
shutdown -l

It's mostly pseudocode. You'll get the gyst of what I was going for though.