WPF; click once; Double Click file to launch; VS 2008

后端 未结 2 1167
说谎
说谎 2021-01-14 02:36

My application is only for me and co-workers, so I don\'t care if it\'s Click-Once or copy-the-exe. I want to be able to click a file with given extension in windows explor

2条回答
  •  一个人的身影
    2021-01-14 02:53

    Have you checked Environment.GetCommandLineArgs()? That shows the arguments with which your application was started.

    If your application is associated with a file, it should contain the filename as one of the arguments.

提交回复
热议问题