Get folder and filename in CD ROM
-
Hi, How to I can get all folders name and files name in CD ROM, but not scan all content of CD. Because scan all data is very slowly. Please help me for this problem. H.Dung
-
Hi, How to I can get all folders name and files name in CD ROM, but not scan all content of CD. Because scan all data is very slowly. Please help me for this problem. H.Dung
You didn't mention if your using VB6 or VB.Net. Here is a VB.Net method:
Dim myPath As String = "C:\test" Dim myDirectory As System.IO.Directory Dim mySubDirectory As String If myDirectory.Exists(myPath) Then For Each mySubDirectory In myDirectory.GetDirectories(myPath) MsgBox(mySubDirectory) Next End If
Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students LearnVisualStudio.Net -
You didn't mention if your using VB6 or VB.Net. Here is a VB.Net method:
Dim myPath As String = "C:\test" Dim myDirectory As System.IO.Directory Dim mySubDirectory As String If myDirectory.Exists(myPath) Then For Each mySubDirectory In myDirectory.GetDirectories(myPath) MsgBox(mySubDirectory) Next End If
Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students LearnVisualStudio.NetHi, I use VB.6 and I want get all directories and files in CD ROM but I don't want scan all content of CD ROM. Please help me. Thanks. H.Dung