VBScript Tutorials - Herong's Tutorial Examples - Version 5.20, by Dr. Herong Yang

scrrun.dll - Scripting Runtime DLL Library

This chapter provides tutorial examples and notes on scrrun.dll, Scripting Runtime DLL Library. Topics include list of runtime objects supported in scrrun.dll; using 'Dictionary' objects to store keys and values; using 'FileSystemObject' to manage files and folders; using 'Drive', 'Folder' and 'File' objects to get detailed information on drives, folders and files. using 'TextStream' to read and write text data in files.

Scripting Runtime DLL Library Overview

"Dictionary" Objects to Store Keys and Values

"FileSystemObject" Objects to Manage File Systems

"Drive" Objects Representing Disk Drives

"Folder" Objects Representing File Folders

"File" Objects Representing Files

"TextStream" Objects Representing File Input and Output

Conclusions:

  • Scripting Runtime DLL Library, scrrun.dll, provides a number useful runtime objects for scripting codes.
  • "Dictionary" objects are associated arrays to store pairs of keys and values.
  • "FileSystemObject" objects represent the file system on the local machine.
  • "Drive" objects represent disk drives and mapped network drives.
  • "Folder" objects represent file folders in the file system.
  • "File" objects represent files in the file system.
  • "TextStream" objects represent file input and output streams.

Table of Contents

 About This Book

 Introduction of VBScript - Visual Basic Scripting Edition

 Variant Data Type, Subtypes, and Literals

 Arithmetic Operations

 Numeric Comparison Operations and Logical Operations

 String Operations - Concatenation and Comparison

 Variable Declaration and Assignment Statement

 Expression and Order of Operation Precedence

 Statement Syntax and Statement Types

 Array Data Type and Related Statements

 Array References and Array Assignment Statements

 Conditional Statements - "If ... Then" and "Select Case"

 Loop Statements - "For", "While", and "Do"

 "Function" and "Sub" Procedures

 Built-in Functions

 Inspecting Variables Received in Procedures

 Error Handling Flag and the "Err" Object

 Regular Expression Pattern Match and Replacement

scrrun.dll - Scripting Runtime DLL Library

 Creating Your Own Classes

 IE Web Browser Supporting VBScript

 IIS ASP Server Supporting VBScript

 WSH (Windows Script Host)

 References

 Printable Copy - PDF Version

scrrun.dll - Scripting Runtime DLL Library - Updated in 2015, by Dr. Herong Yang