Folder.Name : Folder : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Folder »

 

Folder.Name







The Name property sets or gets the name of the folder.












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







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Folder