That's because "OutFile" has to be a file path, not only a folder path. So you should change that to something like:
Javascript code:
var Url = "http://www.msgpluslive.net/favicon.ico";
var OutFile = "C:\\favicon.ico";
MsgPlus.DownloadFile(Url, OutFile);