BUG: ADIR() Returns Incorrect Volume NamesLast reviewed: May 27, 1997Article ID: Q122937 |
The information in this article applies to:
SYMPTOMSThe ADIR() function may return a blank or incorrect volume name in FoxPro for MS-DOS for a network or local drive if the volume label contains more than eight characters.
RESOLUTIONUse the Library Construction Kit (LCK) to create a .PLB that obtains the volume label.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONTo reproduce the problem, create and run a program containing the following lines of code:
* show drives between C: and Z: that exist, get their volume name: m.startdrv = ASC("C") m.enddrv = ASC("Z") m.olddefa = SYS(5) FOR i = m.startdrv TO m.enddrv m.testfile = CHR(i) + ":\NUL" string = CHR(i) + ':' DIMENSION temparray(1) IF FILE(m.testfile) SET DEFAULT TO CHR(i) = adir(temparray,'*.*','v') WAIT WINDOW "Drive: " + chr(i) + ; ": exists. Vol name is: "+temparray(1) ENDIF ENDFORFoxPro returns blank or incorrect volume names for network or local drives when the volume label contains more than eight characters.
REFERENCESFor more information about related problems with ADIR(), please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q98357 TITLE : FIX: ADIR() Doesn't Return Volume Label in FoxPro 2.5 |
Keywords : buglist2.60a FoxDos FxprgGeneral
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |