Sideway
output.to from Sideway
Draft for Information Only

Content

VBScript Methods of FSO Folder Object
 Copy Method
  Syntax
  Argument
  Remark
  Applied to
 Delete Method
  Syntax
  Argument
  Remark
  Applied to
 Move Method
  Syntax
  Argument
  Remark
  Applied to
 CreateTextFile Method
  Syntax
  Argument
  Remark
  Applied to

VBScript Methods of FSO Folder Object

Some typical predefined Elements are.

  • FSO Folder Object:
    • Copy Method
    • Delete Method
    • Move Method
    • CreateTextFile Method ≡ TextStream object

Copy Method

last updated 16 Dec 2017

is to copy the associated file or folder object to the specified destination according to the specified overwrite setting.

Syntax

fsofolderobjvar.Copy( destination[, overwrite] )
fsofileobjvar.Copy( destination[, overwrite] )

Argument

fsofolderobjvar | 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.

Remark

  • The results of the Copy method on a File or Folder are identical to operations performed using FileSystemObject.CopyFile or FileSystemObject.CopyFolder where the file or folder referred to by object is passed as an argument.
  • However, that the alternative methods are capable of copying multiple files or folders.

Applied to

Folder Object, File Object

Delete Method

last updated 16 Dec 2017

is to delete the associated file or folder object according to the force setting.

Syntax

fsofolderobjvar.Delete( [force])
fsofileobjvar.Delete( [force])

Argument

fsofolderobjvar | 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.

Remark

  • An error occurs if the specified file or folder does not exist.
  • The results of the Delete method on a File or Folder are identical to operations performed using FileSystemObject.DeleteFile or FileSystemObject.DeleteFolder.
  • The Delete method does not distinguish between folders that have contents and those that do not.
  • The specified folder is deleted regardless of whether or not it has contents.

Applied to

Folder Object, File Object

Move Method

last updated 16 Dec 2017

is to move folder or file of the associated Folder or File Object to the specified destination.

Syntax

fsofolderobjvar.Move( destination )
fsofileobjvar.Move( destination )

Argument

fsofolderobjvar | 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.

Remark

  • The results of the Move method on a File or Folder are identical to operations performed using FileSystemObject.MoveFile or FileSystemObject.MoveFolder.
  • However, that the alternative methods are capable of moving multiple files or folders.

Applied to

Folder Object, File Object

CreateTextFile Method

last updated 14 Dec 2017

is 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.

Syntax

fsoobjvar.CreateTextFile(filename[, overwrite[, unicode]])
fsofolderobjvar.CreateTextFile(filename[, overwrite[, unicode]])

Argument

fsoobjvar | 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

  • If the overwrite argument is false, or is not provided, for a filename that already exists, an error occurs.

Applied to

FileSystemObject Object, Folder Object, TextStream Object

©sideway

ID: 180500031 Last Updated: 5/31/2018 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 224

Software

Application 213

Digitization 32

Latex 52

Manim 204

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 33

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2022 Sideway . All rights reserved Disclaimers last modified on 06 September 2019