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> rmdir / rd</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 RMDIR / RD
------------------------------------------------------------------------------
 Purpose:
 To emulate the DOS RMDIR | RD commands.

 Syntax:
 RMDIR | RD <directory name>

 Parameters:
 directory name The full NetWare path name of the directory to remove.

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

 Description:
 RMDIR | RD emulates the DOS RMDIR | RD commands which delete a specified
 directory. directory name is the full path of the directory to remove,
 including the volume name.

 Example:
 // To remove directory SYS:DATA\WP\DOCS:

 #include "novlib.ch"
 RD SYS:DATA\WP\DOCS
 if ( NWErrorGet() = 0 )
   ? "Directory SYS:DATA\WP\DOCS has been removed successfully"
 endif

 // To perform the same operation using variables

 #include "novlib.ch"
 DirStr = "SYS:DATA\WP\DOCS"
 RD &DirStr
 if ( NWErrorGet() = 0 )
    ? "Directory SYS:DATA\WP\DOCS has been removed successfully"
 endif

 Notes:
 Exercise caution with this function - check that the directory
 specified is the one you wish to delete!

 This function will only remove network directories and appropriate trustee
 access rights are required.

See Also: FSDirAdd() FSDirDelete() DirNameChange() MKDIR / MD RENDIR

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