728x90
반응형
string folderfullname1 = @"C:\aaa\123";
//폴더의 속성을 normal로 변경후 삭제함수 delete에 True를 포함시켜주시면 됩니다.
//간단하죠? ^
DirectoryInfo dir1=new DirectoryInfo (folderfullname1);
dir1.Attributes=System.IO.FileAttributes.Normal;
dir1.Delete(true);
728x90
반응형
'다양한 실전소스코드 > WINFORM(C#)' 카테고리의 다른 글
Tstory API로 블로그 글 쓰기 전 과정 C# (23년 8월) (0) | 2023.08.10 |
---|---|
c# listbox에 txt목록 생성 + 클릭시 text 내용 표시 (0) | 2023.08.09 |
[Solved] C# DataTable Sort, Get Special Column (0) | 2021.06.29 |
C# Debug.WriteLine 사용 (0) | 2021.06.29 |
[Solved] C# Datatable DefaultView Sort, Row FIlter (테이블 정렬 및 필터) (0) | 2021.06.29 |
댓글