file manager 0.1

Posted on 2006-01-31 19:52  岳洋  阅读(180)  评论(0)    收藏  举报
Sub findfile(ByRef fd As Scripting.Folder, ByVal ct As Int16)
        
Dim sfd As Scripting.Folder
        
Dim f As Scripting.File
        
For Each f In fd.Files
            TextBox1.Text 
= TextBox1.Text + Chr(13+ Chr(10+ Space(ct * 2+ f.Name
        
Next
        
For Each sfd In fd.SubFolders
            TextBox1.Text 
= TextBox1.Text + Chr(13+ Chr(10+ Space(ct * 2+ "folder." + sfd.Name
            findfile(sfd, ct 
+ 1)
        
Next
    
End Sub

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3