OK i got it figured out, thanks any how tho, if yer curious to see how, here you go<br>
need 2 listboxes (list1 list2), a directory list (dir1) and a Drive List (drive1)<br>
a Command Button(called Start), a label (label1, pretty big too)<br>
everything is by default name, other than the start button<br>
<br>
Option Explicit<br>
Dim fso As New FileSystemObject<br>
Dim fld As Folder<br>
<br>
Private Sub Dir1_Change()<br>
Form1.Caption = Dir1.path<br>
End Sub<br>
<br>
Private Sub Drive1_Change()<br>
Dir1.path = Drive1.Drive<br>
End Sub<br>
<br>
Private Sub Form_Load()<br>
Dir1.path = Drive1.Drive<br>
End Sub<br>
Private Sub Start_Click()<br>
Dim NumD As Integer, NumF As Integer, CountDF As Integer, j As Integer<br>
CountDF = CleanUp(Dir1.path, "d_*.*", NumD, NumF)<br>
Label1.Caption = "Found " & NumF & " Files and Searched " & NumD & " Directories"<br>
For j = 0 To List1.ListCount - 1<br>
fso.DeleteFile List1.List(j), True<br>
Next j<br>
For j = 0 To List2.ListCount - 1<br>
fso.DeleteFolder List2.List(j), True<br>
Next j<br>
End Sub<br>
Private Function CleanUp(ByVal sFol As String, sFile As String, nDirs As Integer, nFiles As Integer) As Long<br>
Dim tFld As Folder, tFil As File, FileName As String<br>
Set fld = fso.GetFolder(sFol)<br>
FileName = Dir(fso.BuildPath(fld.path, sFile), vbNormal Or vbHidden Or vbSystem Or vbReadOnly)<br>
While Len(FileName) <> 0<br>
CleanUp = CleanUp + FileLen(fso.BuildPath(fld.path, FileName))<br>
nFiles = nFiles + 1<br>
List1.AddItem fso.BuildPath(fld.path, FileName) ' Load ListBox<br>
FileName = Dir() ' Get next file<br>
DoEvents<br>
Wend<br>
Label1 = "Searching " & vbCrLf & fld.path & "..."<br>
nDirs = nDirs + 1<br>
If fld.SubFolders.Count > 0 Then<br>
For Each tFld In fld.SubFolders<br>
DoEvents<br>
If Left(tFld.Name, 1) = "_" Then List2.AddItem (tFld.path)<br>
CleanUp = CleanUp + CleanUp(tFld.path, sFile, nDirs, nFiles)<br>
Next<br>
End If<br>
End Function <p>Karl<br><a href=mailto:kb244@bellsouth.net>kb244@bellsouth.net</a><br><a href=
</a><br>