How to generate an RDP file
RDP Files are plain text only.
It should contains, at least :
full address:s:<hostname> or <IP Address>
RDP Files are text files basically. The configuration values are stored in a option:type:value
format as you can see on this page: Supported Remote desktop RDP file settings.