Cover image for Learn VBScript in a weekend
Title:
Learn VBScript in a weekend
Author:
Ford, Jerry Lee, Jr.
Personal Author:
Publication Information:
[Indianapolis, IN] : Premier Press, [2002]

©2002
Physical Description:
xxv, 417 pages : illustrations ; 24 cm.
General Note:
Includes index.
Language:
English
ISBN:
9781931841702
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Central Library QA76.73.V27 F67 2002 Adult Non-Fiction Central Closed Stacks
Searching...

On Order

Summary

Summary

Providing coverage of most major VBScript objects, methods, properties and events, this text includes lessons which should be easy to follow and understand. A whole chapter is devoted to Windows Script Host and the text also discusses using VBScript for desktop and file system management.


Table of Contents

Introductionp. xxi
Friday Evening Introducing VBScriptp. 1
What Is VBScript?p. 4
What Can VBScripts Do?p. 5
VBScript Execution Environmentsp. 7
A Brief History of VBScriptp. 8
The Visual Basic Family of Programming Languagesp. 10
Scripting Tools Needed for Web Page Developmentp. 12
Browser Compatibilityp. 14
Integrating VBScript and Your Web Pagesp. 15
Writing Your First VBScriptp. 17
Executing VBScripts in Response to Eventsp. 20
Referencing External VBScriptsp. 22
Taking a Breakp. 23
Introducing the Windows Scripting Hostp. 24
WSH Architecturep. 26
Writing WSH VBScriptsp. 29
Working with the Windows Command Promptp. 30
Finding VBScript Source Codep. 33
What's Next?p. 36
Saturday Morning An Introduction to VBScript Programmingp. 37
Getting Startedp. 39
VBScript Syntaxp. 40
Avoiding Syntax Errorsp. 41
Hiding VBScript Statements from Non-Internet Explorer Browsersp. 44
VBScript Statementsp. 46
Adding Comments to Your VBScriptsp. 46
Working with Constantsp. 48
Storing Data in Variablesp. 49
Naming Variablesp. 50
Using Variablesp. 51
Examining Variable Scopep. 52
Manipulating VBScript Variables with Operatorsp. 55
Comparison Operatorsp. 56
Taking a Breakp. 58
Conditional Logicp. 58
If...Then...Elsep. 58
Select Casep. 61
Working with Loopsp. 62
Do Whilep. 62
Do Untilp. 65
For...Nextp. 67
While...Wendp. 68
For...Each...Nextp. 70
Improving Script Organization with Proceduresp. 70
Functionsp. 71
Subroutinesp. 73
Working with Large Amounts of Related Datap. 75
Processing Array Elementsp. 76
Dynamically Changing the Size of Arraysp. 78
VBScript Pop-Up Dialogsp. 81
The VBScript MsgBox Functionp. 82
The VBScript InputBox Functionp. 87
What's Next?p. 89
Saturday Afternoon Scripting Inside Internet Explorerp. 91
Programming Using Objectsp. 94
Understanding Object Organizationp. 95
Object Propertiesp. 97
Object Methodsp. 98
Object Eventsp. 99
An Overview of Internet Explorer Object Modelsp. 99
The DHTML Modelp. 100
The Document Object Modelp. 102
Commonly Used Browser Objectsp. 109
The window Objectp. 110
Take a Breakp. 117
The document Objectp. 117
The location Objectp. 119
The history Objectp. 122
The navigator Objectp. 125
Interacting with Visitorsp. 131
Setting Up Event Handlersp. 131
Working with Different Types of Eventsp. 133
Window and Frame Event Handlersp. 133
Mouse Event Handlersp. 136
Keyboard Event Handlersp. 141
What's Next?p. 142
Saturday Evening Web Page Tricksp. 143
Managing VBScript Errorsp. 145
Ignoring Errorsp. 146
The Err Objectp. 151
Making Status Bar Enhancementsp. 155
Performing Timed Operationsp. 160
Implementing Rollover Effectsp. 161
Taking a Breakp. 166
Controlling Frames with VBScriptp. 166
Authenticating HTML Formsp. 172
buttonp. 173
Checkboxp. 174
Radiop. 177
Textp. 180
textareap. 181
passwordp. 184
hiddenp. 185
Selectp. 187
resetp. 188
A Registration Formp. 190
Baking VBScript Cookiesp. 195
Baking a Cookiep. 196
Retrieving a Cookiep. 199
Adding a VBScript Cookie to Your HTML Pagep. 200
What's Next?p. 204
Sunday Morning Working with the Windows Script Hostp. 205
What Is the Windows Script Host?p. 207
Different Things You Can Do with VBScript and the WSHp. 209
WSH Operating System Compatibilityp. 210
Examining How VBScript Fits into the WSH Architecturep. 212
Deciding Which WSH Execution Host to Usep. 214
Selecting a Script Enginep. 215
Working with the WSH's Execution Hostsp. 216
CScript and WScript Command-Line Configurationp. 217
Configuring CScript and WScript Command-Line Executionp. 217
Configuring WScript from the Windows Desktopp. 220
Configuring How the Execution Host Processes Individual Scriptsp. 221
Understanding the WSH Object Modelp. 224
Examining WSH Core Object Propertiesp. 228
Examining WSH Core Object Methodsp. 229
Taking a Breakp. 231
Working with VBScript Runtime Objectsp. 231
VBScript Runtime Propertiesp. 233
VBScript Runtime Methodsp. 235
VBScript Runtime Constantsp. 238
Using XML to Create Windows Script Filesp. 240
XML Tagsp. 241
The [left angle bracket]?job ?[right angle bracket] Tagp. 242
The [left angle bracket]?XML ?[right angle bracket] Tagp. 242
The [left angle bracket]comment[right angle bracket] [left angle bracket]/comment[right angle bracket] Tagsp. 243
The [left angle bracket]job[right angle bracket] [left angle bracket]/job[right angle bracket] Tagsp. 243
The [left angle bracket]package[right angle bracket] [left angle bracket]/package[right angle bracket] Tagsp. 245
The [left angle bracket]object[right angle bracket] [left angle bracket]/object[right angle bracket] Tagsp. 246
The [left angle bracket]reference[right angle bracket] [left angle bracket]/reference[right angle bracket] Tagsp. 246
The [left angle bracket]resource[right angle bracket] [left angle bracket]/resource[right angle bracket] Tagsp. 247
The [left angle bracket]script[right angle bracket] [left angle bracket]/script[right angle bracket] Tagsp. 248
Executing Your Windows Script Filesp. 249
What's Next?p. 253
Sunday Afternoon Working with Files and Foldersp. 255
Creating a WSH VBScript Templatep. 257
Accessing the Windows File Systemp. 259
Displaying Drive Free Spacep. 261
Examining File System Typesp. 263
Examining File Propertiesp. 265
Creating Documents, Reports, and Logsp. 267
Opening and Closing Filesp. 268
Writing to Filesp. 272
Adding Characters to a Filep. 272
Adding a Line to a Filep. 273
Adding Blank Lines to a Filep. 273
Reading from Filesp. 274
Skipping Portions of a Filep. 276
Reading Formatted Datap. 277
Reading Entire Filesp. 277
Taking a Breakp. 278
Performing File and Folder Administrationp. 279
Managing Files and Folders with the FileSystemObject Objectp. 280
Copying Filesp. 280
Moving Filesp. 282
Deleting Filesp. 282
Creating a Folderp. 282
Copying Foldersp. 283
Moving Foldersp. 284
Deleting Foldersp. 285
Managing Files with the File Objectp. 285
Copying a Filep. 285
Moving a Filep. 286
Deleting a Filep. 286
Managing Folders with the Folder Objectp. 286
Copying a Folderp. 287
Moving a Folderp. 287
Deleting a Folderp. 288
Scheduling File and Folder Administrationp. 288
Setting Up the Task Scheduler Servicep. 289
Scheduling VBScript Execution from the Windows Command Promptp. 293
Using the Scheduled Tasks Wizardp. 295
Scheduled Tasks Limitationsp. 299
What's Next?p. 300
Sunday Evening - Desktop, Computer, and Network Automationp. 301
The Darker Side of VBScriptp. 303
Taking Control of the Windows Desktopp. 305
Understanding How Shortcuts Workp. 305
Creating Desktop Shortcutsp. 308
Adding Shortcuts to Windows Foldersp. 310
Removing Your Shortcutsp. 311
Defining Shortcut Propertiesp. 311
Configuring the Windows Start Menup. 313
Customizing the Quick Launch Barp. 314
Integrating the WSH with Windows Utilities and Applicationsp. 315
Starting Windows Utilitiesp. 315
Starting Control Panel Utilitiesp. 318
Working with Windows Applicationsp. 320
Integrating with Applications Using Their Object Modelsp. 325
Other Computer Automation Tasksp. 327
Writing to Windows Event Logsp. 327
Manipulating the Windows Registryp. 330
Writing to the Registryp. 333
Reading from the Registryp. 333
Deleting from the Registryp. 333
Modifying Windows Configuration Settingsp. 334
Taking a Breakp. 337
Working with Commands and Command-Line Utilitiesp. 337
Sending Messages over a Networkp. 338
Administrating Windows Servicesp. 340
Managing User Accountsp. 341
Scripting Scheduled Script Executionp. 343
Accessing Network Resourcesp. 344
Mapping to Network Drivesp. 346
Disconnecting Mapped Drivesp. 346
What's Next?p. 348
Appendix A VBScript Language Referencep. 349
VBScript Formatting Rulesp. 351
VBScript Constantsp. 351
VBScript Variablesp. 359
VBScript Pop-Up Dialogsp. 361
VBScript Errorsp. 362
VBScript Eventsp. 368
Browser Event Handlersp. 368
VBScript Functionsp. 370
Keywordsp. 377
Objects and Collectionsp. 377
VBScript Operatorsp. 380
Reserved Wordsp. 382
VBScript Special Charactersp. 384
VBScript Statementsp. 385
Appendix B What's on the Web Sitep. 387
Glossaryp. 389
Indexp. 405

Google Preview