How do I open a file using the shell's default handler?

后端 未结 3 1908
挽巷
挽巷 2020-12-05 17:59

Our client (a winforms app) includes a file-browser. I\'d like the user to be able to open the selected file using the shell\'s default handler. How do I do that? I\'ve r

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 18:29

    not sure if its ok

    System.Diagnostics.Process.Start(filePath);
    

提交回复
热议问题