C# Windows ‘Open With >’ Context menu behaviour [duplicate]
The Open With command just passes the path of the file as the first argument to the application so all you need to do is public static void Main(string[] args) { if(args[0] != null) { //args[0] contans a path to the file do whatever you need to do to display it } else { //Start … Read more