April 2004
Beginner
416 pages
11h 3m
English
Name and Size (used in the preceding WScript.Echo command) are just two file properties that can be listed by using FileSystemObject. A file property describes aspects of the file such as when it was created, when it was last accessed, when it was modified, its path, its size, and its type. The intrepid network administrator can enumerate various file properties, which can be used for both security purposes and user data management. For example, as shown in the following code, you can add a couple of lines to the Listfiles.vbs script to retrieve additional data—in this case, the date the file was created and the date it was last modified. The vbTab constant is added to make the output easier to read. The completed script is saved ...