将文件夹从手机下载到PC [英] downloading a folder from mobile to pc

查看:72
本文介绍了将文件夹从手机下载到PC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用c#使用asp.net将文件夹挂接到PC时,如何从手机自动下载文件夹?

我安装了pcsuite.这将显示手机中的文件夹.但是,当手机挂接到PC时,如何自动下载它.

How to download a folder automatically from a mobile phone when it is hooked to pc using asp.net with c#?

I installed pcsuite. That displays the folders in the mobile phone. But how to download it automatically when the mobile is hooked to pc.

推荐答案

据我所知,不能使用ASP.NET来完成,但是如果您使用Windows应用程序,请参阅:
-在.NET和C#中使用USB设备 [在C#程序中检测USB驱动器的移除 [
As far as I know, cannot be done using ASP.NET but if you use windows application, see:
- Working with USB devices in .NET and C#[^]
- Detecting USB Drive Removal in a C# Program[^]

Now if you detect when the phone is attached, you could start the download. This would of course mean that you have the application running which handles the detection.


您的意思是自动,您无法对aspx页面执行类似的操作.

编写Windows服务之类的东西,为驱动器缓冲并复制文件.
what do you mean by automatically, you can''t do anything like this with aspx pages.

write a windows service sort of thing, pool for the drive and copy the files.


这篇关于将文件夹从手机下载到PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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