Link:http://output.to/sideway/default.asp?qno=180600007 Script, Scripting Language, VBScript elements, Server-Side VBScript Object Element FileSystemObject File Method VBScript Methods of FSO File ObjectSome typical predefined Elements are.
Copy Methodlast updated 12/16/2017is to copy the associated file or folder object to the specified destination according to the specified overwrite setting. Syntaxfsofolderobjvar.Copy( destination[, overwrite] ) fsofileobjvar.Copy( destination[, overwrite] ) Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.CopyRequired Keyword. to specify the Method of associated Object.destinationRequired. Destination where the file or folder is to be copied. Wildcard characters are not allowed.overwriteOptional. Boolean value that is True (default) if existing files or folders are to be overwritten; False if they are not.Remarks
Applied toFolder Object, File ObjectDelete Methodlast updated 12/16/2017is to delete the associated file or folder object according to the force setting. Syntaxfsofolderobjvar.Delete( [force]) fsofileobjvar.Delete( [force]) Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.DeleteRequired Keyword. to specify the Method of associated Object.forceOptional. Boolean value that is True if files or folders with the read-only attribute set are to be deleted; False (default) if they are not.Remarks
Applied toFolder Object, File ObjectMove Methodlast updated 12/16/2017is to move folder or file of the associated Folder or File Object to the specified destination. Syntaxfsofolderobjvar.Move( destination ) fsofileobjvar.Move( destination ) Argumentfsofolderobjvar | fsofileobjvarRequired. to specify the associated Object instance reference.MoveRequired Keyword. to specify the Method of associated Object.destinationRequired. Destination where the file or folder is to be moved. Wildcard characters are not allowed.Remarks
Applied toFolder Object, File ObjectOpenAsTextStream Methodlast updated 12/16/2017is to open a TextStream Object of the associated File Object according to specified optional iomode setting and format setting for reading from, writing to, or appending to the file. Syntaxfsofileobjvar.OpenAsTextStream([iomode, [format]]) ArgumentfsofileobjvarRequired. to specify the associated Object instance reference.OpenAsTextStreamRequired Keyword. to specify the Method of associated Object.iomodeOptional Setting. Indicates input/output mode. Can be one of three constants: ForReading, ForWriting, or ForAppending.formatOptional Setting. One of three Tristate values used to indicate the format of the opened file. 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. Remarks
Applied toFile 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 07/06 |