Book description
Lightweight yet powerful, VBScript from Microsoft® is used in four main areas: server-side web applications using Active Server Pages (ASP), client-side web scripts using Internet Explorer, code behind Outlook forms, and automating repetitive tasks using Windows Script Host (WSH). VBScript in a Nutshell, Second Edition delivers current and complete documentation for programmers and system administrators who want to develop effective scripts.Completely updated for VBScript 5.6, WSH 5.6 and ASP 3.0, VBScript In a Nutshell, Second Edition includes updated introductory chapters that will help you keep current with the significant changes since the first edition was published. New chapters introduce the Windows Script Component for creating binary COM components, and the Script Encoder.The main part of the book is a comprehensive reference focusing on VBScript essentials with an alphabetical reference to all statements, keywords and objects, and a section of notes and solutions to real-world gotchas--various undocumented behaviors and aspects of the language--to help you avoid potential problems. Each entry in the reference section details the following:
- The keyword's syntax, using standard code conventions
- A list of arguments accepted by the function or procedure, if any exist
- A discussion of how and where the keyword should be used within the scripting environment
- A discussion of the differences between the operation of the keyword in Visual Basic or VBA and in VBScript
Publisher resources
Table of contents
- Foreword
- Preface
-
I. The Basics
- 1. Introduction
- 2. Program Structure
- 3. Data Types and Variables
- 4. Error Handling and Debugging
- 5. VBScript with Active Server Pages
- 6. Programming Outlook Forms
-
7. Windows Script Host 5.6
- 7.1. Why Use WSH?
- 7.2. Running WSH Scripts
- 7.3. Program Flow
-
7.4. The WSH Object Model
- 7.4.1. The WScript Object
- 7.4.2. The WshArguments Object
- 7.4.3. The WshController Object
- 7.4.4. The WshEnvironment Object
- 7.4.5. The WshNamed Object
- 7.4.6. The WshNetwork Object
- 7.4.7. The WshRemote Object
- 7.4.8. The WshRemoteError Object
- 7.4.9. The WshScriptExec Object
- 7.4.10. The WshShell Object
- 7.4.11. The WshShortcut Object
- 7.4.12. The WshSpecialFolders Object
- 7.4.13. The WshUnnamed Object
- 7.4.14. The WshUrlShortcut Object
- 7.5. WSH Language Elements
- 7.6. Accessing Other Object Models
-
8. VBScript with Internet Explorer
- 8.1. The <SCRIPT> Tag
- 8.2. What Can You Do with Client-Side Scripting?
- 8.3. Understanding the IE Object Model
- 9. Windows Script Components
-
II. Reference
-
10. The Language Reference
- Abs Function
- Array Function
- Asc, AscB, AscW Functions
- Atn Function
- Call Statement
- CBool Function
- CByte Function
- CCur Function
- CDate Function
- CDbl Function
- Chr, ChrB, ChrW Functions
- CInt Function
- Class Statement
- CLng Function
- Const Statement
- Cos Function
- CreateObject Function
- CSng Function
- CStr Function
- Date Function
- DateAdd Function
- DateDiff Function
- DatePart Function
- DateSerial Function
- DateValue Function
- Day Function
- Dictionary Object
- Dictionary.Add Method
- Dictionary.CompareMode Property
- Dictionary.Count Property
- Dictionary.Exists Method
- Dictionary.Item Property
- Dictionary.Items Method
- Dictionary.Key Property
- Dictionary.Keys Method
- Dictionary.Remove Method
- Dictionary.RemoveAll Method
- Dim Statement
- Do . . . Loop Statement
- Drive Object
- Drives Collection Object
- End . . . Statement
- Erase Statement
- Err Object
- Err.Clear Method
- Err.Description Property
- Err.HelpContext Property
- Err.HelpFile Property
- Err.Number Property
- Err.Raise Method
- Err.Source Property
- Escape Function
- Eval Function
- Execute Statement
- ExecuteGlobal Statement
- Exit Statement
- Exp Function
- File Object
- File.Copy Method
- File.Delete Method
- File.Move Method
- File.OpenAsTextStream Method
- File System Object Model
- Files Collection Object
- FileSystemObject Object
- FileSystemObject.BuildPath Method
- FileSystemObject.CopyFile Method
- FileSystemObject.CopyFolder Method
- FileSystemObject.CreateFolder Method
- FileSystemObject.CreateTextFile Method
- FileSystemObject.DeleteFile Method
- FileSystemObject.DeleteFolder Method
- FileSystemObject.DriveExists Method
- FileSystemObject.Drives Property
- FileSystemObject.FileExists Method
- FileSystemObject.FolderExists Method
- FileSystemObject.GetAbsolutePathName Method
- FileSystemObject.GetBaseName Method
- FileSystemObject.GetDrive Method
- FileSystemObject.GetDriveName Method
- FileSystemObject.GetExtensionName Method
- FileSystemObject.GetFile Method
- FileSystemObject.GetFileName Method
- FileSystemObject.GetFileVersion Method
- FileSystemObject.GetFolder Method
- FileSystemObject.GetParentFolderName Method
- FileSystemObject.GetSpecialFolder Method
- FileSystemObject.GetStandardStream Method
- FileSystemObject.GetTempName Method
- FileSystemObject.MoveFile Method
- FileSystemObject.MoveFolder Method
- FileSystemObject.OpenTextFile Method
- Filter Function
- Fix Function
- Folder Object
- Folder.Copy Method
- Folder.CreateTextFile Method
- Folder.Delete Method
- Folder.Move Method
- Folders Collection Object
- Folders.Add Method
- For . . . Next Statement
- For Each . . . Next Statement
- FormatCurrency, FormatNumber, FormatPercent Functions
- FormatDateTime Function
- Function Statement
- GetLocale Function
- GetObject Function
- GetRef Function
- Hex Function
- Hour Function
- If . . . Then . . . Else Statement
- Initialize Event
- InputBox Function
- InStr, InStrB Functions
- InstrRev Function
- Int Function
- Is Operator
- IsArray Function
- IsDate Function
- IsEmpty Function
- IsNull Function
- IsNumeric Function
- IsObject Function
- Join Function
- LBound Function
- LCase Function
- Left, LeftB Functions
- Len, LenB Functions
- LoadPicture Function
- Log Function
- LTrim Function
- Match Object
- Matches Collection Object
- Me Keyword
- Mid, MidB Functions
- Minute Function
- Month Function
- MonthName Function
- MsgBox Function
- Now Function
- Oct Function
- On Error Statement
- Option Explicit Statement
- Private Statement
- Property Get Statement
- Property Let Statement
- Property Set Statement
- Public Statement
- Randomize Sub
- ReDim Statement
- RegExp Object
- RegExp.Execute Method
- RegExp.Global Property
- RegExp.IgnoreCase Property
- RegExp.Pattern Property
- RegExp.Replace Method
- RegExp.Test Method
- Rem Statement
- Replace Function
- RGB Function
- Right, RightB Functions
- Rnd Function
- Round Function
- RTrim Function
- ScriptEngine Function
- ScriptEngineBuildVersion Function
- ScriptEngineMajorVersion Function
- ScriptEngineMinorVersion Function
- Second Function
- Select Case Statement
- SetLocale Function
- Set Statement
- Sgn Function
- Sin Function
- Space Function
- Split Function
- Sqr Function
- StrComp Function
- String Function
- StrReverse Function
- Sub Statement
- Tan Function
- Terminate Event
- TextStream Object
- TextStream.Close Method
- TextStream.Read Method
- TextStream.ReadAll Method
- TextStream.ReadLine Method
- TextStream.Skip Method
- TextStream.SkipLine Method
- TextStream.Write Method
- TextStream.WriteBlankLines Method
- TextStream.WriteLine Method
- Time Function
- Timer Function
- TimeSerial Function
- TimeValue Function
- Trim Function
- TypeName Function
- UBound Function
- UCase Function
- Unescape function
- VarType Function
- Weekday Function
- WeekdayName Function
- While . . . Wend Statement
- With Statement
- Year Function
-
10. The Language Reference
-
III. Appendixes
-
A. Language Elements by Category
- A.1. Array Handling
- A.2. Assignment
- A.3. Comment
- A.4. Constants
- A.5. Data Type Conversion
- A.6. Date and Time
- A.7. Dictionary Object
- A.8. Error Handling
- A.9. File System Objects
- A.10. Information Functions
- A.11. Mathematical and Numeric
- A.12. Miscellaneous
- A.13. Object Programming
- A.14. Program Structure and Flow
- A.15. String Manipulation
- A.16. User Interaction
- A.17. Variable Declaration
- B. VBScript Constants
- C. Operators
- D. Locale IDs
- E. The Script Encoder
-
A. Language Elements by Category
- About the Authors
- Colophon
- Copyright
Product information
- Title: VBScript in a Nutshell, 2nd Edition
- Author(s):
- Release date: March 2003
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596004880
You might also like
book
VBScript in a Nutshell
Microsoft's Visual Basic Scripting Edition (VBScript), a subset of Visual Basic for Applications, is a powerful …
book
Microsoft® VBScript Step by Step
Get guidance from a well-known scripting expert—and teach yourself the fundamentals of Microsoft Visual Basic Scripting …
book
Microsoft® PowerShell, VBScript and JScript® Bible
Packed with more than 300 sample scripts and an extensive collection of library functions, this essential …
book
VBScript Programmer's Reference, Third Edition
Completely updated for Windows Vista and Windows Server 2003 R2, this book is packed with practical …