以编程方式打开Windows 10“按应用程序设置默认值”特别的应用程序 [英] Programmatically open Windows 10 "Set defaults by app" for particular app

查看:358
本文介绍了以编程方式打开Windows 10“按应用程序设置默认值”特别的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从命令提示符或PowerShell打开此页面?

How can I open this page from command prompt or PowerShell?

我知道你可以"启动ms-settings:defaultapps",但我需要打开"按应用设置默认值"对于特定的应用程序。

I know you can do "start ms-settings:defaultapps", but I need to open the "Set defaults by app" for a specific application.

 

 

推荐答案

你好Acrym,

Hello Acrym,

如果已经从系统注册了注册表中的协议,我们只能导航到特定页面。喜欢这个页面显示:

We can only navigate to specific pages if it has already register the protocol in registry from the system. Like this page showed:

https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app

https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app

但似乎没有文件显示我们默认协议页面已被注册为特定协议。 

However it seems no document shows us that the default protocol page has been registered as a specific protocol. 

如果没有具体的理由让您这样做,我建议您让您的客户在您的应用程序的帮助下自行导航到协议页面。您可以告诉他们如何通过导航到此页面来设置默认应用程序。

If there is no specific reason for you to do this, I recommend you ask your customer to navigate to the protocol page by themselves with the help of your app. You can tell them how then can set the default app by navigate to this page.

或者您可以通过
设置注册表

祝你好运,

巴里


这篇关于以编程方式打开Windows 10“按应用程序设置默认值”特别的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆