The filename will be supplied to your program as part of the Command item:
Code:
RichTextBox1.LoadFile Command, rtfText