[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FN_RMDIR()
Delete directory
------------------------------------------------------------------------------
Syntax
fn_RmDir( <nHandle> [, <cPath>] ) --> <nStatus>
Arguments
<nHandle> is a handle to a directory path, usually obtained with
fn_alTemDH().
<cPath> is the desired pathspec. If the pathspec is fully defined
by the handle, then pass an empty string or NIL.
Returns
<nStatus> will be zero if the directory was deleted. If an error
occurred then <nStatus> will contain a NetWare error code;
see netto.CH for possible values.
Description
This call deletes a directory on a file server, given the directory
path. Delete privileges must be in effect and the directory must
be empty and not in use.
Examples
// Delete a directory from the SYS volume
fn_RmDir( 0, "SYS:\THISDIR" )
// Delete a directory from the VOL1 volume using a handle
aDHInfo := fn_alTemDH( 0, "H", "VOL1:\" )
fn_RmDir( aDHInfo[ 1 ] )
Header File: netto.CH (only needed if you want to make use of the #defines for
Header File: the error codes).
Source: N:\SRC\FSYS\DELETDIR.PRG
Author: Ted Means
See Also:
fn_MkDir()
fn_GetCD()
fn_RenDir()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson