如何删除asp.net中的服务器端FOLDERS ..? [英] How to delete Server Side FOLDERS in asp.net ..?

查看:72
本文介绍了如何删除asp.net中的服务器端FOLDERS ..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在asp.net中删除服务器端文件夹。



例如:

flePath:/ ~Tempfolder / FileFolder /



我有一个Tempfolder并在一个文件夹内。如何删除整个文件夹?

亲切的建议谢谢。

Delete Server Side FOLDERS in asp.net.

for example :
flePath :" /~Tempfolder/FileFolder/"

I have one Tempfolder and inside of one filefolder .how to delete the whole Filefolder?
kindly advice thanks.

推荐答案

在发布问题之前,请阅读所有指南。首先尝试google或搜索。你有可能找到你的解决方案。接下来你发帖,请尝试在互联网上搜索你的问题,现在

点击此链接查看你的问题。

使用C#和VB.Net在ASP.Net中创建和删除文件夹(目录) [ ^ ]
Please read all guidelines before posting your questions. First try to google it or search. Chances are you will find your solution. Next you post , please try to search your problem on internet, for now
Follow this link for your problem.
Create and delete folder (directory) in ASP.Net using C# and VB.Net[^]


使用Directory.Delete



https://msdn.microsoft.com/en-us/library/fxeahc5f(v=vs.110)。 aspx [ ^ ]



使用MapPath获取目录路径



HTTPS://米sdn.microsoft.com/en-us/library/system.web.httpserverutility.mappath(v=vs.110).aspx [ ^ ]



运行您的代码的帐户将需要权限才能执行此操作。
Use Directory.Delete

https://msdn.microsoft.com/en-us/library/fxeahc5f(v=vs.110).aspx[^]

Get the directory path using MapPath

https://msdn.microsoft.com/en-us/library/system.web.httpserverutility.mappath(v=vs.110).aspx[^]

The account your code is running under will need permissions to do this.


这篇关于如何删除asp.net中的服务器端FOLDERS ..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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