定义内部函数
Dim dir As String = Args(0)
Dim dg_lst As list(of string) = Args(1)
For Each File As String In FileSys.GetFiles(dir)
dg_lst.Add(File)
Next
For Each dir2 As String In FileSys.GetDirectories(dir)
Functions.Execute("递归获取所有文件", dir2,dg_lst)
Next
按钮
dim dg_lst as new list(of string)
Functions.Execute("递归获取所有文件", "d:\abc",dg_lst)