VBScript Programmer's Reference.pdf

(12626 KB) Pobierz
714729390.010.png
VBScript
Programmer’s Reference
Third Edition
Adrian Kingsley-Hughes
Kathie Kingsley-Hughes
Daniel Read
Wiley Publishing, Inc.
714729390.011.png 714729390.012.png 714729390.013.png
714729390.001.png 714729390.002.png 714729390.003.png
VBScript
Programmer’s Reference
Third Edition
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv
Chapter 1: A Quick Introduction to Programming . . . . . . . . . . . . . . . . . . . . . . 1
Chapter 2: What VBScript Is — and Isn’t!. . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Chapter 3: Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Chapter 4: Variables and Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Chapter 5: Control of Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Chapter 6: Error Handling and Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Chapter 7: The Scripting Runtime Objects . . . . . . . . . . . . . . . . . . . . . . . . . 183
Chapter 8: Classes in VBScript (Writing Your Own COM Objects) . . . . . . . . 209
Chapter 9: Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Chapter 10: Client-Side Web Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Chapter 11: Windows Sidebars and Gadgets. . . . . . . . . . . . . . . . . . . . . . . . 287
Chapter 12: Task Scheduler Scripting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Chapter 13: PowerShell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
Chapter 14: Super-Charged Client-Side Scripting . . . . . . . . . . . . . . . . . . . . 375
Chapter 15: Windows Script Host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
Chapter 16: Windows Script Components . . . . . . . . . . . . . . . . . . . . . . . . . 465
Chapter 17: Script Encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
Chapter 18: Remote Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509
Chapter 19: HTML Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517
Chapter 20: Server-Side Web Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . 535
Chapter 21: Adding VBScript to Your VB and .NET Applications. . . . . . . . . . 569
(Continued)
714729390.004.png 714729390.005.png 714729390.006.png
Appendix A: VBScript Functions and Keywords . . . . . . . . . . . . . . . . . . . . . . 603
Appendix B: Variable Naming Convention . . . . . . . . . . . . . . . . . . . . . . . . . . 675
Appendix C: Coding Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677
Appendix D: Visual Basic Constants Supported in VBScript. . . . . . . . . . . . . 681
Appendix E: VBScript Error Codes and the Err Object . . . . . . . . . . . . . . . . . 687
Appendix F: The Scripting Runtime Library Object Reference . . . . . . . . . . . 703
Appendix G: The Windows Script Host Object Model . . . . . . . . . . . . . . . . . . 715
Appendix H: Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 723
Appendix I: The Variant Subtypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 727
Appendix J: ActiveX Data Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 731
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 759
714729390.007.png 714729390.008.png 714729390.009.png
Zgłoś jeśli naruszono regulamin