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

본문 바로가기

vb.net

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

회원사진
하나를하더라도최선을
2019-10-08 20:12 8,391 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

등록된 댓글이 없습니다.
게시판 전체검색