如何使用asp.net删除文件夹而不删除网页中的内容 [英] how to delete the folder without delete the inner content in web page using asp.net
本文介绍了如何使用asp.net删除文件夹而不删除网页中的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如:
在系统中右键单击文件夹并删除文件夹,文件夹将删除,就像我要求的那样
请回复
解决方案
尝试:
Directory.Delete(pathToFolder, true );
Eg:
In system right click the folder and delete the folder,the folder will delete like that i ask
pls reply
解决方案
Try:
Directory.Delete(pathToFolder, true);
这篇关于如何使用asp.net删除文件夹而不删除网页中的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文