|
-
Feb 16th, 2004, 11:50 AM
#1
Thread Starter
Fanatic Member
Dir function
hi all,
in vb6, when i required list of all txt files in a directory, i used the following code:
VB Code:
DirArray(1) = Dir("c:\mydir\*.txt")
For ArrCnt = 2 To UBound(DirArray) - 1
DirArray(ArrCnt) = Dir() 'here's the problem with dir function
Next
but in vb.net, the dir function is not working without the pathname. in my xp pc, which is my development pc, no error is generated. but in client pc, which is win 98 se, it shows the error.
pls guide, what to do?
regards,
prakash
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
|