Dim tr As WinForm.TreeNode = args(0)
If FileSys.DirectoryExists(tr.name) Then
For Each dir As String In FileSys.GetDirectories(tr.name)
Dim info As new fileinfo(dir)
If info.Hidden = False Then
Dim cd As WinForm.TreeNode = tr.Nodes.Add(dir, filesys.GetName(dir))
Functions.Execute("test",cd)
End If
Next
End If
For Each dir As String In FileSys.GetFiles(tr.name)
Dim cd As WinForm.TreeNode = tr.Nodes.Add(dir, FileSys.GetName(dir))
Next
----------------
Dim tv As WinForm.TreeView = e.Form.Controls("TreeView1")
Dim nd As WinForm.TreeNode
For Each DInfo As IO.DriveInfo In IO.DriveInfo.GetDrives
If dinfo.Isready AndAlso dinfo.name = "d:\" Then
nd = tv.Nodes.Add(dinfo.name)
Functions.Execute("test",nd)
End If
Next