Código: Seleccionar todo

'___________________________________________________________________
'Function DelFolder
'Coded By The Swash at 24/12/2009
'Contact: [email protected]
'www.Indetectables.Net
'___________________________________________________________________
Public Function DelFolder(folder As String) As String
On Error GoTo NotFound
 Dim PathUse As String
 PathUse = folder & "\" & "*.*"
  
  DelFolder = False
   If GetAttr(folder) Then
    If Dir$(PathUse) = "" Then
       RmDir (folder)
       Else
       Kill (PathUse)
       RmDir (folder)
     End If
     
    DelFolder = True
     MsgBox "Folder Deleted", vbInformation, "Done"
   End If
 Exit Function
 
NotFound:
   MsgBox "Directory not found", vbExclamation, "Fail"

End Function
Use:

Código: Seleccionar todo

Call DelFolder(Folder)
En tu ventana
Y en tu ventana, gritas al cielo pero lo dices callada..
Responder

Volver a “Otros lenguajes”