Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetfakdep()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETFAKDEP()
 Determines the relative directory depth under a fake root
------------------------------------------------------------------------------
 Syntax

     NNETFAKDEP([<cDrive>]) --> nDepth

     Netware: 2.2 and 3.11

 Argument

     <cDrive>  Designates a drive (A to .Z) or a search drive (S1 to
     .S16) that has been mapped to a network directory as fake root.  When
     called the parameter, the function uses the default drive.

 Returns

     NNETFAKDEP() returns the relative depth under the fake root directory.
     If the specified drive has not been mapped as fake root, NNETFAKDEP()
     returns -1.  If <cDrive> does not exist, the return value is -2.

 Description

     NOVELL NET FAKE DEPTH
     If a network drive has been mapped as a so-called fake root, it becomes
     the apparent root of the allocated drive.  After a directory change,
     NNETFAKDEP() returns the number of directories under the fake root.
     Depth 0 is assigned to the root directory.  Additionally, NNETFAKDEP()
     allows you to determine if a drive has been mapped as a fake root
     (return value => 0) or a normal drive (return value < 0).

 Note

     .  Fake roots require shell version 3.01 or higher.

 Example

     Map drive M: as a fake root, then change the directory, and query the
     relative directory depth:

     NNETMAP('M','SYS:PAUL',.T.)
     DIRCHANGE('M:\DATA')
     ? NNETFAKDEP('M')                        // Returns: 1

See Also: NNETDELFAK() NNETMAP()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson