使用Shell API重命名驱动器. [英] Rename drive using shell api.

查看:111
本文介绍了使用Shell API重命名驱动器.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Shell API和C#重命名驱动器?使用哪些库?我发现.NET有某种ShellLib,但我不能
找到它的下载.我的实际问题是,我正在处理不带UNC路径的断开的网络驱动器,因此重命名的唯一方法是从资源管理器中进行,但是我想以编程方式进行操作.

预先感谢.

解决方案

地图网络驱动器(API ) [ ^ ]

How can I rename drive using shell api and c#? Which libraries to use ? I foud that there is some kind of ShellLib for .NET, but I could''t
find its download. My actual problem is that I am dealing with disconected network drive without UNC path so the only way to rename it is from explorer, but I wand to do that programaticly.

Thanks in advance.

解决方案

Map Network Drive (API)[^]


这篇关于使用Shell API重命名驱动器.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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