Link:http://output.to/sideway/default.asp?qno=180500025 Script, Scripting Language, VBScript elements, Server-Side VBScript Object Element FileSystemObject Method VBScript Methods of FSO ObjectSome typical predefined Elements are.
MoveFile Methodlast updated 12/14/2017is to move one or more given source files to the specified destination. Syntaxfsoobjvar.MoveFile ( source, destination ) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.MoveFileRequired Keyword. to specify the Method of associated Object.sourceRequired. The path to the file or files to be moved. The source argument string can contain wildcard characters in the last path component only.destinationRequired. The path where the file or files are to be moved. The destination argument can't contain wildcard characters.Remarks
Applied toFileSystemObject ObjectMoveFolder Methodlast updated 12/14/2017is to move one or more given source folders to the specified destination. Syntaxfsoobjvar.MoveFolder ( source, destination ) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.MoveFolderRequired Keyword. to specify the Method of associated Object.sourceRequired. The path to the folder or folders to be moved. The source argument string can contain wildcard characters in the last path component only.destinationRequired. The path where the folder or folders are to be moved. The destination argument can't contain wildcard characters.Remarks
Applied toFileSystemObject ObjectOpenTextFile Methodlast updated 12/14/2017is to open a given filename file of the associated FileSystemObject Object according to the specified optional iomode setting, create keyword, and format setting, and to return a TextStream Object that can be used to read from, write to, or append to the file. Syntaxfsoobjvar.OpenTextFile(filename[, iomode[, create[, format]]]) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.OpenTextFileRequired Keyword. to specify the Method of associated Object.filenameRequired. String expression that identifies the file to open.iomodeOptional Setting. Can be one of three constants: ForReading, ForWriting, or ForAppending.createOptional. Boolean value that indicates whether a new file can be created if the specified filename doesn't exist. The value is True if a new file is created, False if it isn't created. If omitted, a new file isn't created.formatOptional Setting. One of three Tristate values used to indicate the format of the opened file (TristateTrue = -1 to open the file as Unicode, TristateFalse = 0 to open the file as ASCII, TristateUseDefault = -2 to open the file as the system default). If omitted, the file is opened as ASCII.Settingsiomode argument: ConstantValueDescriptionForReading1Open a file for reading only. You can't write to this file.ForWriting2Open a file for writing.ForAppending8Open a file and write to the end of the file.
format argument: ConstantValueDescriptionTristateUseDefault-2Opens the file using the system default.TristateTrue-1Opens the file as Unicode.TristateFalse0Opens the file as ASCII. Applied toFileSystemObject ObjectOptional Element, Content Occurrence Character, Choice or sequence:(…)+one or more(…)*zero or more(…)?zero or one times(…)exactly once[…]optional(… | …)or( … & …)and( …, … )sequence⋯=⋯assign to⋯.⋯dot notation(+)include(-)exclude
|
Sideway BICK Blog 25/05 |