The atEnd() method returns true if the enumerator is pointing to the last element in the collection; otherwise, it returns false.
True is also returned if the collection is empty or undefined.
<html> <H1>Drive Letters and drive types:</H1> <script language="JScript"> <!-- var fileSysObj = new ActiveXObject("Scripting.FileSystemObject"); var en = new Enumerator(fileSysObj.Drives);
for (;!en.atEnd();en.moveNext()) { document.write("Drive ",en.item().DriveLetter); document.write(" is of type ",en.item().DriveType,"<br>"); } --> </script> </html>