开发者

delete a directory having subdirectory (not empty)

开发者 https://www.devze.com 2023-03-04 18:19 出处:网络
How can i delete a directory having subdirectory inside it which is not empty. 开发者_StackOverflow中文版thanks for the answers

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

精彩评论

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