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> fsdirdelete()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FSDirDelete()
------------------------------------------------------------------------------
 Purpose:
 Delete a directory from the file server.

 Syntax:
 bResult = FSDirDelete( lpszFileSpec )

 Parameters:
 lpszFileSpec The full NetWare path of the directory to be deleted.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper name for this function is:
 FSDirDel()

 Description:
 FSDirDelete() deletes the directory specified by the full path
 lpszFileSpec. This path should include the volume name, for example,
 SYS:PUBLIC\MYDIR. As with the DOS RD command, FSDirDelete() will only
 delete the directory provided it is empty, not flagged read-only, and
 provided the requesting user has sufficient rights.

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

 Example:
 // To remove sub-directory MYDIR from SYS:PUBLIC:
 if ( FSDirDelete( "SYS:PUBLIC\MYDIR" ) )
    ? "Directory MYDIR deleted successfully"
 endif

 Notes:
 Exercise caution with this function - check that the directory
 specified is the one you wish to delete! Only use this function to delete
 network directories. Do not use this function to delete local directories.

 Appropriate trustee access rights are required to use this function.

See Also: FSDirAdd() DirNameChange()

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