Folder.ParentFolder : Folder : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Folder »

 

Folder.ParentFolder







The ParentFolder property returns a new Folder object for the parent folder.












<html>
    <body>
    <script language="JScript">
    <!--
    function get(){
      var myObject = new ActiveXObject("Scripting.FileSystemObject");
      var myFolder = myObject.GetFolder("c:\Temp");
      alert (myFolder.ParentFolder.Path);
    }
    // End hide-->
    </script>
    Get the name of the c:temp parent folder.
    <form name="myForm">
    <input type="Button" value="Get Parent Folder" onClick='get()'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Folder