I am using the code below to get all the files in a particular folder.
There are two questions
1) I would like to get the file names only and not the fullpath on each loop
i.e text1.txt, text2.txt, ...
whereas right now I am getting
C:\Farshad\Net\VB\Files\text1.txt
C:\Farshad\Net\VB\Files\text2.txt
...

2) instead of using the path ("C:\Farshad\Net\VB\Files\") I would like to use the path on a web server such as
"http://www.test1.com/images"
can this be done?

Thanks

Dim d() As String

d = System.IO.Directory.GetFiles("C:\Farshad\Net\VB\Files\")

Dim en As System.Collections.IEnumerator

en = d.GetEnumerator

While en.MoveNext
Console.WriteLine(CStr(en.Current))
End While