Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> schvecpthset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SchVecPthSet()
------------------------------------------------------------------------------
 Purpose:
 Align the DOS PATH variable to the search drive vector.

 Syntax:
 bResult = SchVecPthSet()

 Parameters:
 None.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 SchVecPthSet() aligns the search drive vector table of the NetWare
 shell to the DOS PATH environment variable.

 NetWare tracks search paths on the network via its own list, ( the search
 drive vector ), whereas DOS uses its PATH variable. The vector is simply a
 16 byte table with a list of drive letters on the network that appear in
 the PATH variable. The drive letters on the network should match those in
 the DOS PATH variable. If they do not, strange results can occur when DOS
 attempts to search for files to open.

 Returns TRUE if successful, or FALSE if an error occurs.

 Example:
 // To align the NetWare shell search drive vector so that it
 // matches the DOS PATH variable:
 if ( SchVecPthSet() )
    ? "Search drive vector aligned to DOS PATH"
 endif

 Notes:
 This is a support function for programmers who understand how the
 NetWare search drive and drive mappings work. It is a harmless function,
 and only necessary if you have been modifying the PATH variable manually
 and need to keep consistency with the search drive vector.

See Also: SchDrvDirMap()

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