i have this script:
it displays the contents of only one directory. is there anyway to get it to drill into every directory in that folder, and list the files in subsequent subfolders?
thanks.
Code:
strDir = "c:\a_a\"
Set FSO = CreateObject("Scripting.FileSystemObject")
Set objDir = FSO.GetFolder(strDir)
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(strdir)
For Each strFileName in objFolder.Items
msg= msg & _
objFolder.GetDetailsOf(strFileName, 0) & vbtab & _
objFolder.GetDetailsOf(strFileName, 1) & vbtab & _
objFolder.GetDetailsOf(strFileName, 8) & vbcrlf
Next
msgbox msg
it displays the contents of only one directory. is there anyway to get it to drill into every directory in that folder, and list the files in subsequent subfolders?
thanks.