InternetUnicodeHTMLCSSScalable Vector Graphics (SVG)Extensible Markup Language (xml)ASP.NetDocument Object Model (DOM)JavaScript Server-Side VBScriptVBScript Basic ElementVBScript OperatorVBScript StatementVBScript FunctionVBScript Object VBScript Object Element VBScript Object MethodDictionary Method Draft for Information Only
ContentVBScript Methods of FSO Object
VBScript Methods of FSO ObjectSome typical predefined Elements are.
BuildPath Methodis 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.Remark
Applied toFileSystemObject ObjectCopyFile Methodis 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.Remark
Applied toFileSystemObject ObjectCopyFolder Methodis 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.Remark
Applied toFileSystemObject ObjectCreateFolder Methodis 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.Remark
Applied toFileSystemObject ObjectCreateTextFile Methodis 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.Remark
Applied toFileSystemObject Object, Folder Object, TextStream ObjectDeleteFile Methodis 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.Remark
Applied toFileSystemObject ObjectDeleteFolder Methodis 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.Remark
Applied toFileSystemObject ObjectDriveExists Methodis 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.Remark
Applied toFileSystemObject ObjectFileExists Methodis 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.Remark
Applied toFileSystemObject ObjectFolderExists Methodis 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.Remark
Applied toFileSystemObject Object©sideway ID: 180500023 Last Updated: 5/23/2018 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019