Microsoft KB Archive/191881

= PRB: DIRECTORY Fails to See System or Hidden Folder =

Article ID: 191881

Article Last Modified on 8/24/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q191881



SYMPTOMS
When using the DIRECTORY function to check if a specified directory is found on disk and the attribute of the directory is set to system and/or hidden, the DIRECTORY function returns .F. even though the directory exists.



STATUS
This behavior is by design.



MORE INFORMATION
This behavior also happens with the GETDIR function and CD command. The GETDIR function will not display a directory that has hidden and/or system attributes. Issuing CD to a directory that has hidden and/or system attributes generates the following error:

Invalid path or filename.

Steps to Reproduce Behavior
  In Command window, issue the following command: ?DIRECTORY("c:\windows\fonts") && Using your Windows directory path. RESULT: The DIRECTORY function reported .F.

 Go into the Windows Explorer and look for the Fonts directory in the Windows directory. The attribute of the directory is set to system.

Additional query words: kbVFp600 kbVFp500 kbXBase

Keywords: kbprb KB191881

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.