SiteKiosk Documentation
One Step Back

RootDirectory Object




The RootDirectory object controls the root directory of the CD.


Members Table

    The following table lists the members provided by the RootDirectory object.

    Members
    CollectionsDescription
    DirectoriesList of subdirectories.
    MethodsDescription
    ClearClears all files and subdirectories.
    CreateDirectoryCreates a new subdirectory.
    DeleteDeletes a subdirectory.
    GetDirectoryGets a given subdirectory.
    ImportImports a file or directory.
    RenameRenames a subdirectory.

Remarks
    This object is available through the object CDRecording. Use the RootDirectory object to retrieve information about the CD root directory or to create a new directory.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
Examples
    The following example burns a complete directory to a data CD.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    if (SiteKiosk.CDRecording.RecorderState)
    {
       SiteKiosk.CDRecording.RecordMode = 0;
       SiteKiosk.CDRecording.Title = "My new CD";
       SiteKiosk.CDRecording.RootDirectory.Import("c:/dir");
       SiteKiosk.CDRecording.Record(false, true);
    }
    </SCRIPT>
    

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

Back to topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es / Grupo24, Madrid, España -