Problems with "DIR" function 
Author Message
 Problems with "DIR" function

I am using the Dir function to know if a Directory exists or no. The
Directory is located in a server with Windows NT 3.51. The code is the


and it works, I get strResult="SUBDIR1" and strResult="" if the directory
does not exist.

But now, I am asking for a directory in a server with Windows NT 4.0 and I
get the following results for
the folllowing intructions:

        strResult=Dir("P:\subdir1",vbDirectory) ---------------->
strResult="????++Y" (More or less)
        strResult=Dir("P:\subdir1\subdir2",vbDirectory) ---------------->
        strResult=Dir("P:\subdir1\subdi2\subdir3",vbDirectory) ---------------->

Watching the example of the help of VB, I see that the pathrouteis ended by
a Slash "\" and the funtion returns the first subdirectory inside the
Directory. I have two question:

        - Is correct the use I am doing (without the ended slash)?
        - If the answer to the previous question is Yes, why it does not work with
a server with Windows NT 4.0?

Thanks in advanced.

Fri, 25 Feb 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Problem of Dir("*", vbDirectory)

2. Problem With "window.showmodaldialog("")"

3. DatePart Function "yy" problem

4. "Function address" problem

5. Problems regarding "Round" function

6. I have problem using function "Shell"

7. Problems with the "Now" function

8. Problem with "Open" function

9. problems with mySQL "floor/ceiling" function

10. "Pure Virtual Function Call" Problem

11. Problem with "Open" function

12. Problem with "Open" function


Powered by phpBB® Forum Software