VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

List All Directories And Sub-Directories Into A Listbox

CovertLoop  (12 Submissions)   Coding Standards   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This will list all the directories and subdirectories on your hard drive into a listbox.
Vote if ya wanna.

Inputs
Don't Forget The Declarations

Assumes
Don't Forget The Declarations

Returns
Don't Forget The Declarations

Side Effects
Don't Forget The Declarations

API Declarations
Sub Listdir(path)
Dim d(1000)
Dir1.path = path
For lop = 0 To Dir1.ListCount - 1
d(cnt) = Dir1.List(lop)
cnt = cnt + 1
Next lop
For lop = 0 To cnt - 1
List1.AddItem d(lop)
cur_depth = cur_depth + 1
listdir d(lop)
Next lop
cur_depth = curr_depth - 1
End Sub

Rate List All Directories And Sub-Directories Into A Listbox (4(4 Vote))
List All Directories And Sub-Directories Into A Listbox.bas

List All Directories And Sub-Directories Into A Listbox Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters