[기타] [vb.net] 파일 삭제 File.Delete / Directory.Exists

하나를하더라도최선을
2019-10-08 20:12
5,682
0
본문
Dim Desktop As String = System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop) Desktop = String.Concat(Desktop, "\program1472.com") Desktop &= "\" If Directory.Exists(Desktop) Then For Each str As String In My.Computer.FileSystem.GetFiles(Desktop, FileIO.SearchOption.SearchAllSubDirectories, "*.*") File.Delete(str) Next End If |
댓글목록0