|
-
Jul 23rd, 2003, 01:08 PM
#1
Thread Starter
Fanatic Member
files
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|