Appendix F. The Scripting Runtime Library Object Reference

The default scripting languages installed with Microsoft Windows Vista and XP, Office 2007 and XP, ASP 3.0, and many other applications provide a scripting runtime library in the file scrrun.dll, which implements a series of objects that can be used in ASP on the server and in client-side code running on the client.

  • The Dictionary object: This provides a useful storage object that can be used to store values, accessed and referenced by their name rather than by index as would be the case in a normal array — it's ideal for storing the name/value pairs that you retrieve from the ASP Request object, for example.

  • The FileSystemObject object: This provides you with access to the underlying file system on the server (or on the client in Internet Explorer 5/6 when used in conjunction with a special type of page named HTML Application or HTA) — you can use the FileSystemObject object to iterate through the machine's local and networked drives, folders, and files.

  • The TextStream object: This provides access to files stored on disk, and is used in conjunction with the FileSystemObject object — it can read from or write to text (sequential) files.

The Scripting.Dictionary Object

The Dictionary object provides a useful storage object that you can use to store values, accessed and referenced by their name rather than by index, as would be the case in a normal array. The properties and methods exposed by the Dictionary object are as follows. ...

Get VBScript Programmer's Reference, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.