开发者

delete a directory having subdirectory (not empty)

How can i delete a directory having subdirectory inside it which is not empty.

开发者_StackOverflow中文版thanks for the answers

but now when am deleteing any directory at run time so it will take me to the login page.


You could use the Directory.Delete method passing true as second argument.

Directory.Delete(@"c:\somedirectory", true);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜