Drive.RootFolder : Drive : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Drive »

 

Drive.RootFolder







The RootFolder property contains a Folder object that represents the root folder of the specified drive.












<html>
    <script language="JScript">
    <!--
    function getCRootFolder() {
      var drivePath = "C:";

      var fileSysObj = new ActiveXObject("Scripting.FileSystemObject");

      var drive = fileSysObj.GetDrive(fileSysObj.GetDriveName(drivePath));

      return(drive.RootFolder);
    }
    -->
    </script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Drive