hi all,

in vb6, when i required list of all txt files in a directory, i used the following code:

VB Code:
  1. DirArray(1) = Dir("c:\mydir\*.txt")
  2.         For ArrCnt = 2 To UBound(DirArray) - 1
  3.             DirArray(ArrCnt) = Dir() 'here's the problem with dir function
  4.         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