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> filgettyp()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FilGetTyp()
------------------------------------------------------------------------------
 Purpose:
 Get the file name space type.

 Syntax:
 iType = FilGetTyp( lpszFileSpec )

 Parameters:
 lpszFileSpec The full NetWare directory path of the file.

 Returns:
 A numeric value (signed short int).

 Description:
 FilGetTyp() returns the name space type of the file specified by
 lpszFileSpec. lpszFileSpec must be the full directory path including
 the volume name, for example, SYS:DATA\WP\KATIE.DOC.

 Returns NOVERRINT if an error occurs.

 Example:
 // To return the name space type of file SYS:DATA\KATIE.DOC:
 iNameType = FilGetTyp( "SYS:DATA\KATIE.DOC" )
 if ( iNameType != NOVERRINT )
    ? "Name space type for file SYS:DATA\KATIE.DOC is ", iNameType
 endif

 Notes:
 This function only works with NetWare 386 and appropriate trustee
 access rights are required. Name space types are typically DOS, MAC and
 OS2. See the Novell documentation for a more complete list.

See Also: DirFilLst()

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