I recently learned how to use VB.NET to set your program as the default for a chosen extension. You would write code to set a registry value. The problem is, when you open t
The filename is passed to your program by the OS
Sub Main() Dim s() As String = System.Environment.GetCommandLineArgs() EndSub
MSDN docs