Const statement
The Declaration is used to replace the constant of the text value.
[Public | private]ConstConstname = expression Parameters
Public
Optional. This keyword is used to declare constants that can be used for all processes in all
Buildpath Method
Add a name to the existing path.
Object.Buildpath(Path, name)Parameters
Object
Required. The name of the FileSystemObject object.
Path
Required. To attachName. It can be an absolute or relative path without specifying an
Delete Method
Deletes a specified file or folder.
Object.DeleteForceParameters
Object
Required. Should beFileOrFolderObject Name.
Force
Optional. Boolean value. If the attribute of the file or folder to be deleted is set to read-only, the
Fileexists Method
If the specified file existsTrueOtherwiseFalse.
Object.Fileexists(Filespec)Parameters
Object
Required. The name of the FileSystemObject object.
Filespec
Required. File Name, indicating whether the object exists. If the file
Getfilename Method
Returns the last file or folder of the specified path (not part of the specified drive path.
Object.Getfilename(Pathspec)Parameters
Object
Required. The name of FileSystemObject.
Pathspec
Required. Specifies the file path
Operator (+)
Calculate the sum of two numbers.
result = expression1 + expression2Parameters
Result
Any numeric variable.
Expression1
Any expression.
Expression2
Any expression.Description
You can also use+Operator to connect two strings, but you
Or Operator
Perform logical "or" operations on the two expressions.
result = expression1 Or expression2Parameters
Result
Any numeric variable.
Expression1
Any expression.
Expression2
Any expression.Description
If at least one of the two expressions
Subtraction operator (-)
Calculate the difference between two values or the negative value of the value expression.Syntax 1
Result=Number1-Number2Syntax 2
-NumberParameters
Result
Any numeric variable.
Number
Any numeric expression.
Number1
HelpContext attributes
Sets or returns the context ID of the topic of the Help file.
object.HelpContext [= contextID]Parameters
Object
Required.ErrObject.
ContextID
Optional. A valid identifier of the help topic in the Help
Class statement
Declare the name of a class and define the variables, attributes, and methods that constitute the class.
Class NameStatementsEnd Class Parameters
Name
Required.ClassAccording to the standard variable naming conventions.
Number attribute
An error is returned or a specified value is set.NumberYesErrThe default property of the object.
Object.Number[= Errornumber]Parameters
Object
ErrObject.
Errornumber
Indicates the VBScript error number or an integer of the
ExecuteGlobal statement
Execute multiple statements specified in the global namespace of the script.
ExecuteGlobal statement
StatementA parameter is a string expression that contains one or more executable statements. InStatementParameters can
Source attribute
Returns or sets the name of the originally generated object or application.
object.Source [= stringexpression]Parameters
Object
ErrObject.
Stringexpression
String expression, indicating that an incorrect application is
ReDim statement
Declare dynamic array variables at the process level and allocate or reassign buckets.
ReDim [Preserve] varname(subscripts) [, varname(subscripts)] . . .Parameters
Preserve
The data is retained when you change the size of the last
Set statement
Assign an object reference to a variable or property, or associate an object reference with an event.
Set objectvar = {objectexpression | New classname | Nothing}
-Or-
Set object.eventname =
Sub statement
StatementSubThe process name, parameters, and code that constitutes the subject.
[Public [Default]| Private] Sub name [( arglist)] [statements][Exit Sub][statements]End SubParameters
Public
IndicatesSubThe process can be accessed by
CopyFolder Method
Recursively copy a folder from one location to another.
object.CopyFolder source, destination[, overwrite] Parameters
Object
Required. The name of the FileSystemObject object.
Source
Required. String of the specified folder. You
GetAbsolutePathName Method
Returns a complete and clearly-defined path from the specified provided path.
object.GetAbsolutePathName(pathspec) Parameters
Object
Required. The name of FileSystemObject.
Pathspec
Required. The specified path to be
MoveFolder Method
Move one or more folders from one location to another.
object.MoveFolder source, destination Parameters
Object
Required. The name of FileSystemObject.
Source
Required. The path of the folder to be moved.SourceThe parameter string
ReadAll Method
Read allTextStreamFile and return the result string.
Object.ReadAll
The object should be the name of the TextStream object.Description
For large files, useReadAllMethod To waste memory resources. Other technical input files should
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service