To All-
I'm trying to get all the file name from all of the sub foler, but I'm only getting up to 2 folder.
Attach is my script
Thanks for aly help.
Tony
dim sctr, fctr, c
dim mfr, MFile
dim wefp, dt
'
'
Sub ShowOpeningOutputFile
set MFile = fspenTextFile("j:\sysinfo\DP500masterfile.txt", 8, true)
End Sub
'
'
Function ShowFolderList(folderspec)
Dim fso, f, f1, fc
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.SubFolders
For Each f1 in fc
'
'
Call ShowSubFolderList("\\isd\cashiering\Backup\" & f1.name)
Next
End Function
'
'
'
Function ShowsubFolderList(folderspec)
Dim fso, f, f1, fc, a
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.SubFolders
For Each f1 in fc
'
'
a = folderspec & "\" & f1.name
Call ShowFileList(a)
Next
End Function
'
'
Function ShowFileList(folderspec)
Dim fso, f, f1, fc, s, ci, dt, fil, gv, v
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.Files
For Each f1 in fc
dt = folderspec & "&" & f1.name & "&"
dt = dt & f.Size & "&"
dt = dt & f.DateCreated & "&" '
dt = dt & f.DateLastAccessed & "&" '
dt = dt & f.DateLastModified '
MFile.WriteLine dt
Next
End Function
'
' < < < < M a i n S t r e a m > > > >
' ===================================
'
set fso = CreateObject("Scripting.fileSystemObject")
set MasterDict = CreateObject("Scripting.Dictionary")
'
call ShowOpeningOutputFile
'
call ShowFolderList("\\isd\cashiering\Backup\")
'
MFile.Close
I'm trying to get all the file name from all of the sub foler, but I'm only getting up to 2 folder.
Attach is my script
Thanks for aly help.
Tony
dim sctr, fctr, c
dim mfr, MFile
dim wefp, dt
'
'
Sub ShowOpeningOutputFile
set MFile = fspenTextFile("j:\sysinfo\DP500masterfile.txt", 8, true)
End Sub
'
'
Function ShowFolderList(folderspec)
Dim fso, f, f1, fc
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.SubFolders
For Each f1 in fc
'
'
Call ShowSubFolderList("\\isd\cashiering\Backup\" & f1.name)
Next
End Function
'
'
'
Function ShowsubFolderList(folderspec)
Dim fso, f, f1, fc, a
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.SubFolders
For Each f1 in fc
'
'
a = folderspec & "\" & f1.name
Call ShowFileList(a)
Next
End Function
'
'
Function ShowFileList(folderspec)
Dim fso, f, f1, fc, s, ci, dt, fil, gv, v
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.Files
For Each f1 in fc
dt = folderspec & "&" & f1.name & "&"
dt = dt & f.Size & "&"
dt = dt & f.DateCreated & "&" '
dt = dt & f.DateLastAccessed & "&" '
dt = dt & f.DateLastModified '
MFile.WriteLine dt
Next
End Function
'
' < < < < M a i n S t r e a m > > > >
' ===================================
'
set fso = CreateObject("Scripting.fileSystemObject")
set MasterDict = CreateObject("Scripting.Dictionary")
'
call ShowOpeningOutputFile
'
call ShowFolderList("\\isd\cashiering\Backup\")
'
MFile.Close