I guess the following will do the trick.
using System;
using System.IO;
using System.Windows.Forms;
namespace TXT2MsgBox
{
static class Program
{
static void Main(string[] args)
{
if (args.Length > 0)
{
FileInfo fi = new FileInfo(args[0]);
if (fi.Extension.Equals(".txt", StringComparison.InvariantCultureIgnoreCase))
{
string txtContent;
using(TextReader tr = new StreamReader(args[0]))
{
txtContent = tr.ReadToEnd();
}
MessageBox.Show(txtContent, fi.Name);
}
}
}
}
}
What you have to do is putting this executable in the 'Send To' folder. the easiers way to do this:
WinKey + R
TYPE: shell:sendto
Press enter
Copy the application here or put a shortcut here
I hope this helps.