arthur 发表于 2012-7-31 13:28:08

VBScript参考手册-windows脚本技术 [pdf]

Windows下的脚本语言主要是VBScript和Bat批处理。

相对而言VBScript功能强大一些,它能够访问到几乎所有硬件和软件信息,很多病毒就是用VBS做到。

这里分享一般VBS的完全版参考手册







About VBScript ......................................................................................................................................5
VBScript Limitations in IWS..................................................................................................................7
The Microsoft Visual Basic Family.........................................................................................................8
Differences between VBScript and VBA................................................................................................9
VBScript Hosting Environments...........................................................................................................10
VBScript Language Overview..............................................................................................................11
VBScript Functionality .....................................................................................................................11
VBScript Elements ...........................................................................................................................11
Variable Data Types and Subtypes....................................................................................................12
Data Subtype Identification...............................................................................................................12
Data Subtype Conversion..................................................................................................................12
Variable Naming Rules & Conventions.............................................................................................13
Variable Scope..................................................................................................................................13
VBScript Constants...........................................................................................................................13
Declaring VBScript Variables and Constants ....................................................................................14
VBScript Keywords..........................................................................................................................14
Operators ..........................................................................................................................................14
Operator Precedence .........................................................................................................................15
Functions ..........................................................................................................................................15
Statements ........................................................................................................................................18


arthur 发表于 2012-7-31 13:30:01

Objects and Classes ..............................................................................................................................21
VBScript Object Commands .............................................................................................................23
VBScript User-Defined Class Objects...............................................................................................24
VBScript Objects and Collections .....................................................................................................28
Err Object .....................................................................................................................................29
Scripting Dictionary Object...........................................................................................................30
Scripting FileSystemObject...........................................................................................................31
COM Objects and Collections...........................................................................................................39
VBScript Configuration and Operation in IWS .....................................................................................43
Global Procedures.............................................................................................................................45
Graphics Script .................................................................................................................................46
Screen Scripts ...................................................................................................................................47
Command Dynamic ..........................................................................................................................49
ActiveX Events.................................................................................................................................50
Background Task Startup Script........................................................................................................51
Background Task Script Groups........................................................................................................51
Scope of VBScript Procedures and Variables....................................................................................53
Accessing IWS Tags and IWS Built-in functions ..............................................................................55
Accessing ActiveX Objects from VBScript.......................................................................................58
IntelliSense .......................................................................................................................................60
VBScript with Web Thin Clients.......................................................................................................62
VBScript Language Reference..............................................................................................................63
VBScript Variables ...........................................................................................................................64
Variable Data Types and Subtypes ................................................................................................64

Array Variables.............................................................................................................................66
Boolean Variables.........................................................................................................................67
Byte, Integer & Long Variables.....................................................................................................69
Currency Variables .......................................................................................................................69
Date (and Time) Variables ............................................................................................................70
Empty Variables ...........................................................................................................................72
Error Variables..............................................................................................................................72
Null Variables...............................................................................................................................72
Object Variables ...........................................................................................................................73
Real (Single, Double) Variables ....................................................................................................73
Strings  Variables..........................................................................................................................74
Data Subtype Identification...........................................................................................................76
Data Subtype Conversion..............................................................................................................79
VBScript Naming Rules and Conventions.....................................................................................80
Variable Scope..............................................................................................................................82
VBScript Constants...........................................................................................................................84
Explicit Constants .........................................................................................................................84
Implicit Constants .........................................................................................................................86
Declaring Variables, Objects and Constants ..................................................................................95
VBScript Keywords..........................................................................................................................97
VBScript Literals ..........................................................................................................................97
VBScript Operators...........................................................................................................................98
Arithmetic Operators.....................................................................................................................98
Assignment Operator ....................................................................................................................98
Comparison Operators ..................................................................................................................98
String Concatenation Operators.....................................................................................................98
Logical Operators..........................................................................................................................99
Is Operator ....................................................................................................................................99
$ Operator.....................................................................................................................................99
Operator Precedence ...................................................................................................................111
VBScript Functions.........................................................................................................................112
VBScript Derived Functions ...........................................................................................................169
VBScript Statements.......................................................................................................................170
VBScript Objects and Collections ...................................................................................................196
Scripting Type Library....................................................................................................................212
FileSystemObject (FSO) .................................................................................................................216
TextStream Object ..........................................................................................................................250
页: [1]
查看完整版本: VBScript参考手册-windows脚本技术 [pdf]