Rename Method



 
The Rename method renames a subdirectory.


Syntax

    CDDirectory.Rename(oldname, newname)
    
Parameters
    oldname String that specifies the old name of the subdirectory.
    newname String that specifies the new name of the subdirectory.
Return Value
    None.
Remarks
    None.
Examples
    The following example creates and renames a subdirectory in the first subdirectory of the root directory.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    subDir = SiteKiosk.CDRecording.RootDirectory.Directories.Item(1);
    newDir = subDir.CreateDirectory("dir");
    subDir.Rename("dir", "newdir");
    </SCRIPT>
    

Applies to
    SiteKiosk v6.0 (and later versions).

Back to top