有没有办法判断文件是否正在下载? [英] Is there any way to tell if a file is being downloaded?

查看:86
本文介绍了有没有办法判断文件是否正在下载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的下载内容会转到我的桌面。我希望能够编写一些代码来判断文件是否正在下载过程中。我已经在网上搜索了一段时间,我发现了0。好像有必要这样做。



非常感谢你的任何建议。



编辑:我使用的是浏览器,而不是Ftp或其他任何东西。



我尝试了什么:



我有一个程序可以查看是否正在创建新文件。

My downloads go to my desktop. I'm hoping to write some code that can tell if a file is in the process of downloading or not. I've searched the net for a while now and I found 0 where this is concerned. Seems like there has to be a way of doing it.

Thank you so much for any suggestions.

edit: I'm using a browser, not Ftp or anything else.

What I have tried:

I have a program that sees if a new file is being created.

推荐答案

使用FireFox Ctrl-J打开一个窗口显示持续下载。我记得在IE中看到同样的东西,我认为其他浏览器具有相同的功能。
With FireFox Ctrl-J opens a window showing ongoing downloads. I remember seeing the same thing in IE, I think other browsers have the same feature.


不是真的,但看看是否有一个FileSystemWatcher:



FileSystemWatcher Class( System.IO) [ ^ ]
Not really , but see whether or not a FileSystemWatcher would be of use:

FileSystemWatcher Class (System.IO)[^]


我道歉。我是新来的,不知道怎么做得很好。这是我能看到回复帖子的唯一方式。感谢您的第一个解决方案。在我看到另一篇文章之前,我将其标记为已接受。你的两个帖子都有帮助。



关于fileWatcher,这就是我正在使用的。我用它来监控下载文件夹(在我的情况下,桌面)。



编辑:我发现了为什么我无法发布回复。不再在解决方案中发帖。
I apologize. I'm new here and don't know how to do things very well. This is the only way I can see to respond to a post. Thanks for the first solution. I marked it as 'accepted' before I saw another post. Both of your posts help.

About the fileWatcher, that's what I'm using. I'm using it to monitor the download folder (in my case, the desktop).

edit: I found out why I couldn't post a response. No more posting in solutions.


这篇关于有没有办法判断文件是否正在下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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