且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在C#中将文件扩展名与我的程序相关联?

更新时间:2021-12-31 02:10:31

嗯,在链接中提供了一个解决方案引用,所以你在这一点上唯一的办法就是成为一名真正的程序员,并在代码中加一个例外,在catch块中有一个断点,在调试器中运行app,然后等待t失败。异常(如果抛出)将告诉您究竟出了什么问题。



您需要管理员权限来修改注册表,我的精神动物暗示您可能没有使用管理员帐户。
Well, a solution was provided at the link you cited, so your only recourse at this point is to be an actual programmer, and put an exception around the code, a break point in the catch block, run the app in the debugger, and wait for t to fail. The exception (if thrown) will tell you exactly what's wrong.

You need admin rights to modify the registry, and my spirit animal suggests that you're probably not using an admin account.