>Hi,
>
>How can i get the Subdirectory ??
>
>C:\MY_SYSTEM\PRG <- my system running at there
>C:\MY_SYSTEM\PHOTO\MONITOR
>C:\MY_SYSTEM\PHOTO\PRINTER
>C:\MY_SYSTEM\PHOTO\KEYBOARD
>
>now .... i want to get the value (sub-diretory name), thats inside \PHOTO
>
>result are...... MONITOR, PRINTER, KEYBOARD
Hi,
Drive:
? SYS(5)
C:
? SET('DEFAULT')
C:
Directories:
? CURDIR()
\FOXPROW\
? SYS(2003)
\FOXPROW
? FULL(SET('DEFA'))
C:\FOXPROW\
You can also use the ADIR( ) function to see if a specific directory exists. The following example returns 0
only if the path name does not exist. Remember that the path to a network server may not exist if the
network connection is broken.
ADIR(temparr,'C:\FOXPROW\*.*','D')=0
HTH,
Pete
Peter Adams
FoxPro Programmer
Compu-Mail
Heisenberg was probably right...