InternetUnicodeHTMLCSSScalable Vector Graphics (SVG)Extensible Markup Language (xml)ASP.NetDocument Object Model (DOM)JavaScript FileSystemObject Component FileSystemObject ObjectGetSpecialFolder / DrivesBuildPath / GetAbsolutePathName / GetBaseNameGetExtensionName / GetTempNameDriveExists / GetDriveName / GetDriveFolderExists / GetParentFolderName Draft for Information Only
Content
FileSystemObject Object
FileSystemObject ObjectOne function of FileSystemObject object is the manipulation of folders of the file system. FileSystemObject.CopyFolderFileSystemObject.CopyFolder method is the method to copy a folder from the source location to the destination location recursively. Syntax:FileSystemObjectName.CopyFolder(source,destination[, overwrite]) Or in VBScript. Imply FileSystemObjectName.CopyFolder(source,destination[, overwrite]) Or in JScript. Imply FileSystemObjectName.CopyFolder(source,destination[, overwrite]) Parameters:FileSystemObjectName The parameter "FileSystemObjectName" is used to specify the name of the instance of the FileSystemObject Object related to. source The parameter "source" is used to specify the path string of the source folder specification to be copied from. Wildcard characters can be used to specify one or more folders to be copied. However the wildcard characters can only be used in the last path component of the path specification. destination The parameter "destination" is used to specify the path string of the destination folder specification to which the folder and subfolders from source are to be copied. Wildcard characters cannot be used to specify the path of desitination folder. overwrite The optional parameter "overwrite" is a boolean value used to indicate that existing folders in destination are to be overwritten are not. The default value of parameter overwrite is true. Folders are overwritten if the boolean value is true. Folders are not overwritten if the boolean value is false. Remarks:FileSystemObjectName should always refer to a FileSystemObject Object. If the parameter source contains wildcard characters or the parameter destination ends with a path separator (\), the parameter destination is assumed to be an existing folder in which to copy matching folders and subfolders. Otherwise, the parameter destination is assumed to be the name of the folder to be created for copying to. In either case, when copying from the source to the desination,
An error also occurs if a source doesnot match any folders when using wildcard characters. Besides, the CopyFolder method stops on the first error it encounters. No attempt is made to roll back any changes were made before an error occurs. Examples:
FileSystemObject.CreateFolder MethodFileSystemObject.CreateFolder method is the method to create a folder according to the specified foldername and return an instance of Folder object cooresponding to the created folder related to the specified FileSystemObject Object Syntax:FileSystemObjectName.CreateFolder(foldername) Or in VBScript. Imply Set folderobjectname = FileSystemObjectName.CreateFolder(foldername) Or in JScript. Imply folderobjectname = FileSystemObjectName.CreateFolder(foldername) Parameters:folderobjectname The parameter "folderobjectname" is the name assigned to an instance of Folder object created and returned by the method using the FileSystemObjectName.CreateFolder Method. FileSystemObjectName The parameter "FileSystemObjectName" is used to specify the name of the instance of the FileSystemObject Object related to. foldername The parameter "foldername" is used to specify the path specification used to indentify the folder to be created and the instance of Folder object of the corresponding folder to be returned. Return Values:Folder object The method returns a Folder object corresponding to the specified foldername related to the specified FileSystemObject Object. . Remarks:FileSystemObjectName Method should always refer to a FileSystemObject Object. An error occurs if the specified folder already exists. Examples:
FileSystemObject.DeleteFolder MethodFileSystemObject.DeleteFolder method is the method to delete the specified folder and its contents related to the specified FileSystemObject Object. Syntax:FileSystemObjectName.DeleteFolder(folderspec[, force]) Or in VBScript. Imply FileSystemObjectName.DeleteFolder(folderspec[, force]) Or in JScript. Imply FileSystemObjectName.DeleteFolder(folderspec[, force]) Parameters:FileSystemObjectName The parameter "FileSystemObjectName" is used to specify the name of the instance of the FileSystemObject Object related to. folderspec The parameter "folderspec" is used to specify the folder specification to be deleted. The parameter folderspec can contain wildcard characters in the last path component. force The optional parameter "force" is a boolean value used to indicate that folders with read-only attribute setting are to be deleted or not. The default value of parameter force is false. Folders are deleted if the boolean value is true. Folders are not deleted if the boolean value is false. Remarks:FileSystemObjectName should always refer to a FileSystemObject Object. An error occurs if no matching folders are found. The DeleteFolder method does not check whether the folders have contents or not. And the specified folder is deleted regardless of whether the folders have contents or not. Besides, the DeleteFolder method stops on the first error it encounters. No attempt is made to roll back or undo any changes were made before an error occurs. Examples:
©sideway ID: 130300026 Last Updated: 3/21/2013 Revision: 0 Ref: ![]() References
![]() 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