FileSystem.CopyFile() (Method)

A method for copying files within the file system.

Availability:

JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmyFileSystem.CopyFile(aSource, aTarget, aFlag)
Argument list:aSourceThe file to copy from
aTargetThe file to copy to
aFlagA flag to indicate whether to overwrite

Although you can copy files by using the Copy() method that belongs to a File object, the FileSystem object also supports file copying from a point of view that is external to a file.

See also:File.Copy()