问题描述
如何通过使用vb.net和asp.net搜索当前计算机上可用的所有可移动驱动器,从而从可移动驱动器中下载特定文件夹?
我尝试了wndproc()方法.
How to download a specific folder from a removable drive, by searching all removable drives available in the current machine using asp.net with vb.net?
I tried with wndproc() method. it is not working in web application.
推荐答案
DriveInfo[] ListDrives = DriveInfo.GetDrives();
foreach (DriveInfo Drive in ListDrives)
{
if (Drive.DriveType == DriveType.Removable)
{
//Do stuff
}
}
如果这样做没有帮助,请查看这些链接;
获取已连接的USB驱动器列表 [ ^ ]
如何找到isb字母驱动器 [ ^ ]
在C#程序中检测USB驱动器的移除 [ ^ ]
=== [更新] ===
我刚刚注意到它是VB.Net
这是您需要的:
链接1 [ ^ ]
链接2 [ ^ ]
祝你好运,
OI
If that doesnt help have a look at these links;
Get list of connected usb drives[^]
How to find the isb letter drive[^]
Detecting USB Drive Removal in a C# Program[^]
===[UPDATE]===
I have just noticed it is VB.Net
here is what you needed:
Link 1[^]
Link 2[^]
Good luck,
OI
这篇关于从可移动驱动器下载文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!