Link:http://output.to/sideway/default.asp?qno=180500023 Script, Scripting Language, VBScript elements, Server-Side VBScript Object Element FileSystemObject Method VBScript Methods of FSO ObjectSome typical predefined Elements are.
BuildPath Methodlast updated 12/13/2017is to append a given name to the specified existing path. Syntaxfsoobjvar.BuildPath(path, name) ArgumentfsoobjvarRequired. To specify the associated Object instance reference.BuildPathRequired Keyword. to specify the Method of associated Object.pathRequired. Existing path to which name is appended. Path can be absolute or relative and need not specify an existing folder.nameRequired. Name being appended to the existing path.Remarks
Applied toFileSystemObject ObjectCopyFile Methodlast updated 12/13/2017is to copy one or more given source files to the specified destination according to the specified overwrite setting. Syntaxfsoobjvar.CopyFile ( source, destination[, overwrite] ) ArgumentfsoobjvarRequired. To specify the associated Object instance reference.CopyFileRequired Keyword. to specify the Method of associated Object.sourceRequired. Character string file specification, which can include wildcard characters, for one or more files to be copied.destinationRequired. Character string destination where the file or files from source are to be copied. Wildcard characters are not allowed.overwriteOptional. Boolean value that indicates if existing files are to be overwritten. If true, files are overwritten; if false, they are not. The default is true. Note that CopyFile will fail if destination has the read-only attribute set, regardless of the value of overwrite.Remarks
Applied toFileSystemObject ObjectCopyFolder Methodlast updated 12/13/2017is to recursively copy the given source folder to the specified destination according to the specified overwrite setting Syntaxfsoobjvar.CopyFolder ( source, destination[, overwrite] ) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.CopyFolderRequired Keyword. to specify the Method of associated Object.sourceRequired. Character string folder specification, which can include wildcard characters, for one or more folders to be copied.destinationRequired. Character string destination where the folder and subfolders from source are to be copied. Wildcard characters are not allowed. overwriteOptional. Boolean value that indicates if existing folders are to be overwritten. If true, files are overwritten; if false, they are not. The default is true.Remarks
Applied toFileSystemObject ObjectCreateFolder Methodlast updated 12/14/2017is to create a folder.object of the specified foldername. Syntaxfsoobjvar.CreateFolder(foldername) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.CreateFolderRequired Keyword. to specify the Method of associated Object.foldernameRequired. String expression that identifies the folder to create.Remarks
Applied toFileSystemObject ObjectCreateTextFile Methodlast updated 12/14/2017is to create the given filename file according to the overwrite setting.and to return the associated textStream object that can be used to read from or write to the created file. Syntaxfsoobjvar.CreateTextFile(filename[, overwrite[, unicode]]) fsofolderobjvar.CreateTextFile(filename[, overwrite[, unicode]]) Argumentfsoobjvar | fsofolderobjvarRequired. to specify the associated Object instance reference.CreateTextFileRequired Keyword. to specify the Method of associated Object.filenameRequired. String expression that identifies the file to create.overwriteOptional. Boolean value that indicates whether you can overwrite an existing file. The value is true if the file can be overwritten, false if it can't be overwritten. If omitted, existing files are not overwritten.unicodeOptional. Boolean value that indicates whether the file is created as a Unicode or ASCII file. The value is true if the file is created as a Unicode file, false if it's created as an ASCII file. If omitted, an ASCII file is assumed.Remarks
Applied toFileSystemObject Object, Folder Object, TextStream ObjectDeleteFile Methodlast updated 12/14/2017is to delete the given filespec file according to the force setting. Syntaxfsoobjvar.DeleteFile ( filespec[, force] ) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.DeleteFileRequired Keyword. to specify the Method of associated Object.filespecRequired. The name of the file to delete. The filespec can contain wildcard characters in the last path component.forceOptional. Boolean value that is true if files with the read-only attribute set are to be deleted; false (default) if they are not.Remarks
Applied toFileSystemObject ObjectDeleteFolder Methodlast updated 12/14/2017is to delete the given folderspec folder and its contents according to the force setting. Syntaxfsoobjvar.DeleteFolder ( folderspec[, force] )fsoobjvar.DeleteFolder ( folderspec[, force] ) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.DeleteFolderRequired Keyword. to specify the Method of associated Object.folderspecRequired. The name of the folder to delete. The folderspec can contain wildcard characters in the last path component.forceOptional. Boolean value that is true if folders with the read-only attribute set are to be deleted; false (default) if they are not.Remarks
Applied toFileSystemObject ObjectDriveExists Methodlast updated 12/14/2017is to return a Boolean value indicating the drive of the given drivespec exist with True or does not exist with False. Syntaxfsoobjvar.DriveExists(drivespec) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.DriveExistsRequired Keyword. to specify the Method of associated Object.drivespecRequired. A drive letter or a complete path specification.Remarks
Applied toFileSystemObject ObjectFileExists Methodlast updated 12/14/2017is to return a Boolean value indicating the file of the given filespec exist with True or does not exist with False. Syntaxfsoobjvar.FileExists(filespec) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.FileExistsRequired Keyword. to specify the Method of associated Object.filespecRequired. The name of the file whose existence is to be determined. A complete path specification (either absolute or relative) must be provided if the file isn't expected to exist in the current folder. Wildcard characters (*, ?, and so on) are not supported.Remarks
Applied toFileSystemObject ObjectFolderExists Methodlast updated 12/14/2017is to return a Boolean value indicating the folder of the given folderspec exist with True or does not exist with False.. Syntaxfsoobjvar.FolderExists(folderspec) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.FolderExistsRequired Keyword. to specify the Method of associated Object.folderspecRequired. The name of the folder whose existence is to be determined. A complete path specification (either absolute or relative) must be provided if the folder isn't expected to exist in the current folder.Remarks
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 23/05 |