August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Drives.Count
The Count property of the Drives collection contains the number of items in the collection.
Listing 9.39 displays the number of items contained in the Drives collection.
<html>
<script language="JScript">
<!-- Hide
//Create a file system object
var fileSysObj = new ActiveXObject("Scripting.FileSystemObject");
//Display number of drives
document.write("There are ",fileSysObj.Drives.count," drives.");
//Hide End -->
</script>
</html>
|
Read now
Unlock full access