Folder.Drive : Folder : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Folder »

 

Folder.Drive







The Drive property returns the drive letter of the folder.












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







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Folder