Hello,
I am Using VB6
Here Hw to Get SubFolder Names of Given Folder
I have here Code But Error is coming
Here Error is coming, Plz Give me reply
Faisal
I am Using VB6
Here Hw to Get SubFolder Names of Given Folder
I have here Code But Error is coming
Code:
Dim FSO As New FileSystemObject
Dim FOL As Folder
Dim Path As String
Path = InputBox("Enter Path")
Set FOL = FSO.GetFolder(Path)
Dim i As Integer
For i = 1 To FOL.SubFolders.Count
MsgBox FOL.SubFolders.Item(i).Name
Next
Faisal
Comment