Mega Code Archive

 
Categories / JavaScript Tutorial / MS JScript
 

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>