Hi Fo(l)x,

cPath = (connected network path e.g. "x:\test")
Directory(cPath) returns .t. even if the network cable is disconnected

How to do determine the access to the network location without
reading/writing files from/to "cPath"

Norbert

Re: Directory() by Norbert

Norbert
Tue May 18 06:57:37 CDT 2004

.... and without TCP/IP solutions!!! ....

Norbert



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



Re: Directory() by Norbert

Norbert
Tue May 18 08:12:59 CDT 2004

THANKS!!
... thats the way to 'myDirectory()' ....

Norbert