Página 1 de 1

Function DelFolder [VB6] Not Dependencies

Publicado: 24 Dic 2009, 22:59
por The Swash

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)

Re: Function DelFolder [VB6] Not Dependencies

Publicado: 25 Dic 2009, 03:48
por Lordcam


Gran trabajooooo, me sierve de muuucho!!!