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> remove</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 REMOVE
------------------------------------------------------------------------------
 Purpose:
 Emulate the Novell REMOVE.EXE command line utility.

 Syntax:
 REMOVE USER | GROUP <user | group> FROM <directory>

 Parameters:
 user | group  The user or group to remove from the directory.
 directory     The full NetWare path of the directory.

 Returns:
 None.
 NWErrorGet() returns non-zero if an error occurs.

 Description:
 REMOVE is a CA-Clipper 5.x UDC to emulate the NetWare REMOVE.EXE
 command line utility. It is used to remove a user or group as a trustee
 of a specified directory.

 directory must be the full NetWare path of the directory, including the
 volume name.

 Example:
 // To remove group EVERYONE as a trustee from directory SYS:DATA\WP:

 #include "novlib.ch"
 REMOVE GROUP EVERYONE FROM SYS:DATA\WP
 if ( NWErrorGet() = 0 )
    ? "Group EVERYONE no longer has access to SYS:DATA\WP"
 endif

 // To perform the same operation using variables:

 #include "novlib.ch"
 DirStr = "SYS:DATA\WP"
 GrpStr = "EVERYONE"
 REMOVE GROUP &GrpStr FROM &DirStr
 if ( NWErrorGet() = 0 )
    ? "Group EVERYONE no longer has access to SYS:DATA\WP"
 endif

 Notes:
 For more information, see REMOVE.EXE in the NetWare reference
 manuals.

 This function requires that NOVLIB50.PRG is compiled and linked in with
 your program.

See Also: GRANT DirUserAdd() DirUserDelete() DirGroupAdd() DirGroupDelete()

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