Vbs Tutorial: VBScript statement-const statement

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

Vbs Tutorial: method-buildpath Method

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

Vbs Tutorial: method-delete Method

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

Vbs Tutorial: method-fileexists Method

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

Vbs Tutorial: method-getfilename Method

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

VBS Tutorial: Operator-operator (+)

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

VBS Tutorial: Operator-Or operator

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

VBS Tutorial: Operator-subtraction operator (-)

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

VBS Tutorial: VBscript attributes-HelpContext attributes

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

VBS Tutorial: VBscript statement-Class statement

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.

VBS Tutorial: VBscript Attribute-Number attribute

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

VBS Tutorial: VBscript statement-ExecuteGlobal statement

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

VBS Tutorial: VBscript Attribute-Source attribute

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

VBS Tutorial: VBScript statement-ReDim statement

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

VBS Tutorial: VBScript statement-Set statement

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 =

VBS Tutorial: VBScript-Sub statement

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

VBS Tutorial: method-CopyFolder Method

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

VBS Tutorial: method-GetAbsolutePathName Method

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

VBS Tutorial: method-MoveFolder Method

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

VBS Tutorial: method-ReadAll Method

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

Total Pages: 64722 1 .... 53767 53768 53769 53770 53771 .... 64722 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.