从磁盘删除文件 [英] Delete file from a disk

查看:61
本文介绍了从磁盘删除文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果使用的是chrome或mozilla浏览器,有人可以建议我如何从文件夹中删除文件.


如果正在使用IE,则可以从File.Delete(Path)文件夹中删除文件,但不能从chrome中删除文件.

注意:我已经编写了删除处理程序中文件的代码.

Can any one suggest me how can i delete a file from folder, if am using a chrome or mozilla browser.


I can delete file from folder Using File.Delete(Path) if am using IE but not from chrome.

Note : I have written a code to delete a file in a Handler.

推荐答案

您肯定误解了Web的工作原理.您显示的代码已在服务器端完成,并尝试删除服务器上的文件.它与Web浏览器无关.甚至您的观察结果都不准确或问题描述不正确.如果可以成功删除文件,则浏览器没有关系.

—SA
You certainly misunderstand how Web works. The code you show is done on the server side and attempts to delete a file on the server''s how. It has nothing to do with a Web browser. Perhaps even your observation is inaccurate or your problem description is incorrect. If you can delete a file successfully, the browser does not matter.

—SA


这篇关于从磁盘删除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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