If you want to know what the user double clicked on in Explorer to run your program, use the Command$ variable

i.e. in the form load event,

Code:
FileNm=Command$
Open FileNm for input as #1
Input #1,NewText
Close #1