Imports System.IO Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim archivos() As String = Directory.GetFiles("c:\directorio", "*.*") ' sin backslash al final de la ruta del directorio For Each f As String In archivos File.Delete(f) Next End Sub End Classhttp://bit.ly/2f3pTKV
No hay comentarios.:
Publicar un comentario