August 1999
Intermediate to advanced
1488 pages
72h 53m
English
enumeratorobj.moveFirst()
The moveFirst() method of the Enumerator object moves the enumerator to the beginning of the collection. If the collection is empty or undefined, undefined is returned.
In Listing 9.44, the enumerator is used to access the drive letters and types. The moveFirst() method moves the enumerator back to the beginning of the collection so the drive status can be determined for each drive.
<html> <H1>Drive Letters and drive types:</H1> <script language="JScript"> <!-- Hide //Create enumerator object var fileSysObj = new ActiveXObject("Scripting.FileSystemObject"); var en = new Enumerator(fileSysObj.Drives); ... |
Read now
Unlock full access