Key in code to attach a specific reference file

I thought I could just say,

RF=<dir location>\file_name.extension

Any thoughts on the easiest way to attach a specified reference file? I'm going to use this as a batch function.