Re: Directory() by Eric
Eric
Tue May 18 07:55:55 CDT 2004
Hello, Norbert!
You wrote on Tue, 18 May 2004 13:56:17 +0200:
NDN> cPath = (connected network path e.g. "x:\test")
NDN> Directory(cPath) returns .t. even if the network cable is disconnected
I assume you're using a drive mapping, right? I think that the DIRECTORY()
return value is correct, even though the network cable is disconnected,
because the mapping itself (X:) still exists. What you can do is using
ADIR().
?ADIR(testarray, "X:\*.*")
?TYPE("testarray") && u
or
?ADIR(testarray, "X:\*.*", "V")
?testarray[1]
?DIRECTORY(testarray[1]) && .F.
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8