I use the following code to get all the files name in C:\Test and it works.
However, I have one question about this code which is everytime it gets "." first and then ".." , and finally the file names. My question is that is there any way to avoid "." and ".." in the beginning of the loop but the file name?
MyFileName=Dir("C:\Test\")
Do while MyFileName>0
Msgbox MyFileName
MyFileName=Dir()
loop
Thank you
However, I have one question about this code which is everytime it gets "." first and then ".." , and finally the file names. My question is that is there any way to avoid "." and ".." in the beginning of the loop but the file name?
MyFileName=Dir("C:\Test\")
Do while MyFileName>0
Msgbox MyFileName
MyFileName=Dir()
loop
Thank you