Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get Folder name ??
Message
From
07/12/2001 09:11:53
 
 
To
07/12/2001 01:30:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00590996
Message ID:
00591100
Views:
24
>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...
Previous
Reply
Map
View

Click here to load this message in the networking platform