简体   繁体   English

如何以编程方式在Windows 10资源管理器的导航窗格中创建指向文件夹的链接

[英]How to create link to folder in navigation pane of Windows 10 explorer programmatically

After reading that it is not possible to create an entry in quick access area of the windows 10 explorer programmatically at the moment i wanted to ask if there is a possibility with an API function or via registry to create a link to a folder in the navigation pane like Dropbox does after installation? 读完后,无法以编程方式在Windows 10资源管理器的快速访问区域中创建条目,我想问一下是否有可能使用API​​函数或通过注册表在导航中创建指向文件夹的链接像Dropbox这样的窗格在安装后会完成吗?

带保管箱的导航窗格

Thanks in advance for your help 在此先感谢您的帮助

Little bit late, but its working fine for me, That's why adding an answer: 有点晚了,但是对我来说很好用,这就是为什么要添加答案的原因:

Toy can follow the instructions furnished in this Post: Creating a Link in the Left Pane of the File Explorer - like OneDrive or DropBox , Copy those registry entries and save it as a file with .reg extension and execute that file from your application if you need to change it from application. 玩具可以按照本文中提供的说明进行操作: Creating a Link in the Left Pane of the File Explorer - like OneDrive or DropBox ,复制这些注册表项并将其保存为带有.reg扩展名的文件,并从应用程序中执行该文件(如果您需要从应用程序更改它。 or else run that reg file from your system for Applying the changes. 或者从您的系统运行该reg文件以应用更改。

For running registry files you can use the following code: 对于运行注册表文件,您可以使用以下代码:

Process regeditProcess = Process.Start("regedit.exe", "/s yourRegistryFile.reg");
regeditProcess.WaitForExit();

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将文件夹固定到Windows资源管理器中的导航窗格 - Pin a folder to Navigation Pane in Windows Explorer C# 在 Windows 资源管理器中将文件夹固定到导航窗格 - C# Issue Pinning Folder to Navigation Pane in Windows Explorer 如何在Windows 10的“快速访问”部分添加文件夹? 或如何为文件夹调用Windows资源管理器上下文菜单选项? - How to add a folder to the “Quick Access” section in windows 10? OR How to call windows explorer context menu option for a folder? 如何以编程方式将文件夹添加到用户的收藏夹(在Windows资源管理器中)? - How do I programmatically add a folder to the user's Favorites (in Windows Explorer)? 单击Mozilla Firefox中的链接后,如何在Windows资源管理器中打开网络路径文件夹? - How to open a network path folder in windows explorer on click of link from Mozilla Firefox? 以编程方式展开/折叠Outlook导航窗格中的文件夹 - Expand/collapse folders in the Outlook navigation pane programmatically 如何在 Windows 资源管理器中打开文件夹? - How can I open a folder in Windows Explorer? Windows文件预览 - 类似于资源管理器中的预览窗格 - Windows file preview - similar to preview pane in explorer 如何创建指向存储在Internet /云中但在Windows资源管理器中显示为“本地文件”的文件的链接? - How to create a link to a file stored in internet / cloud but appears as a 'local file' in Windows Explorer? 如何以编程方式获取Windows 10显示语言? - How to get windows 10 display language programmatically?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM