http://chinmayinfotech.blogspot.com/2013/03/chatting-with-command-prompt.html