Audax321
Well-known member
- Joined
- May 4, 2002
- Messages
- 90
Okay I have my program finding subdirectories like this:
The problem with this code is that it only retrieves subdirectoris one level deep. Is there any way to retrieve all subdirectories. For example... enter C:\MP3 for target directory returns:
C:\MP3
C:\MP3\MP3CD1
C:\MP3\MP3CD1\GoodMP3s
C:\MP3\MP3CD1\GoodMP3s\MaybeTheseMP3sAreJunk
and so on and so on...
basically goes as deep as possible to retrieve all subdirectories in the main directory that was initially selected... Thanks...
And still, if someone could explain file input and output in VB.NET, I would really appreciate it... its confusing..
Code:
Dim subdir as string()
Dim addsub as string
Dim targetdirectory
subdir = system.io.directory.getdirectories(targetdirectory)
For each addsub in subdir
lstdir.items.add(addsub)
Next addsub
The problem with this code is that it only retrieves subdirectoris one level deep. Is there any way to retrieve all subdirectories. For example... enter C:\MP3 for target directory returns:
C:\MP3
C:\MP3\MP3CD1
C:\MP3\MP3CD1\GoodMP3s
C:\MP3\MP3CD1\GoodMP3s\MaybeTheseMP3sAreJunk
and so on and so on...
basically goes as deep as possible to retrieve all subdirectories in the main directory that was initially selected... Thanks...

And still, if someone could explain file input and output in VB.NET, I would really appreciate it... its confusing..