Dim pth As String = args(0) Dim nms As List(of String) = args(1) For Each fl As String In filesys.GetFiles(pth) nms.add(fl) Next For Each dr As String In FileSys.GetDirectories(pth) Functions.Execute("listfile",dr.nms) Next
调用函数: dim nms As New List(of string) Functions.Execute("listfile","c:\data",nms)