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> rendir</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 RENDIR
------------------------------------------------------------------------------
 Purpose:
 Emulate the DOS RENDIR command.

 Syntax:
 RENDIR <old directory> <new directory>

 Parameters:
 old directory The old NetWare directory name.
 new directory The new NetWare directory name.

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

 Description:
 RENDIR emulates the DOS RENDIR command and is used in the same way.
 Old directory is the existing name of the directory and new directory
 is the name to change to.

 Both old directory and new directory must be the full path names including
 the volume name.

 Example:
 // To rename directory SYS:DATA\WP to SYS:DATA\WORD:

 #include "novlib.ch"
 RENDIR SYS:DATA\WP SYS:DATA\WORD
 if ( NWErrorGet() = 0 )
    ? "Directory SYS:DATA\WP is now called SYS:DATA\WORD"
 endif

 // To perform the same operation using variables

 #include "novlib.ch"
 OldDir = "SYS:DATA\WP"
 NewDir = "SYS:DATA\WORD"
 RENDIR &OldDir &NewDir
 if ( NWErrorGet() = 0 )
    ? "Directory SYS:DATA\WP is now called SYS:DATA\WORD"
 endif

 Notes:
 This function will only work on network directories and appropriate
 trustee access rights are required.

See Also: FSDirAdd() FSDirDelete() DirNameChange() RMDIR / RD MKDIR / MD

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