sub writeFile()
set myFile = fso.CreateTextFile(file.value, true)
xml = xml & GetChildren(folder.value)
myFile.Write xml
myFile.Close
set myFile = nothing
alert("输出完毕!")
end sub
for each fd in self.SubFolders
if (fd.Attributes and 2) = 0 then
result = result & GetChildren(fd.Path) & vbCrLf
end if
next
for each f in self.Files
if (f.Attributes and 2) = 0 then
result = result & "<file name='" & f.Name & "' path='" & f.Path & "'/>" & vbCrLf
end if
next
result = result & "</folder>"
GetChildren = result
end function
sub writeFile()
set myFile = fso.CreateTextFile(file.value, true)
xml = xml & GetChildren(folder.value)
myFile.Write xml
myFile.Close
set myFile = nothing
alert("输出完毕!")
end sub