简体   繁体   English

将C#Shell扩展驱动器映射到网络驱动器

[英]Mapping a C# shell extension drive to a network drive

I am currently working on a shell extension in C# using the library EZShellExtensions. 我目前正在使用EZShellExtensions库在C#中进行Shell扩展。 The application basically displays the data present in database like a windows folder with custom folder and file icons. 该应用程序基本上显示数据库中存在的数据,例如带有自定义文件夹和文件图标的Windows文件夹。 It also gives the opportunity for copying into and from the application . 它还为复制和复制应用程序提供了机会。 Copying into application is done by calling a web service to add and get files from database. 通过调用Web服务从数据库中添加和获取文件来完成复制到应用程序中。 My application is currently being displayed as a Drive in MyComputer. 我的应用程序当前在MyComputer中显示为驱动器。 I want to map this application to a network drive( or assign a drive letter ) so that I can access the files in app from command prompt or any other application like X:\\example_folder\\example_file. 我想将此应用程序映射到网络驱动器(或分配驱动器号),以便可以从命令提示符或任何其他应用程序(例如X:\\ example_folder \\ example_file)访问应用程序中的文件。 Can you help on how to modify the application for this ? 您可以帮忙修改此应用程序吗?

I found the answer and was able to map my app (similar to google drive ) as a network drive. 我找到了答案,并且能够将我的应用程序(类似于google drive)映射为网络驱动器。 1. Right click on my computer and select Map a network drive. 1.右键单击我的计算机,然后选择“映射网络驱动器”。 2. On the window that comes select the option " Connect to a website that you can use to store your documents and pictures " ( will be shown as a link ) 3. On the next window that comes, proceed to next window by clicking next. 2.在随后出现的窗口中,选择选项“连接到可用于存储文档和图片的网站”(将显示为链接)。3.在随后出现的下一个窗口中,单击“下一步”进入下一个窗口。 。 4. On the next window select " Choose a custom network location" and click next. 4.在下一个窗口中,选择“选择一个自定义网络位置”,然后单击“下一步”。 5. This window ask for you internet or network address. 5.此窗口询问您Internet或网络地址。 Here you have to give the CLSID(Windows class identifier) of your app. 在这里,您必须提供应用程序的CLSID(Windows类标识符)。 Or CLSID of mycomputer/clsid of your app. 或mycomputer的CLSID /您的应用程序的clsid。

you can find more details about CLSID here ! 您可以在此处找到有关CLSID的更多详细信息! .

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM