File.Copy() (Method)

A method that copies files.

Availability:

JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmyFile.Copy(newFileName, aFlag)
Argument list:newFileNameThe new file name to copy the file to
aFlagAn indication of whether to overwrite or not

When operating on files on the client platform with MSIE, this method provides a means of copying files within the file system.

The destination argument needs to be a valid location within the file system the File object belongs to. Given that computers allow for the mounting of foreign file systems through a variety of different techniques, the target file system path may be constructed quite differently to that of the source path.

See also:FileSystem.CopyFile(), Folder.Copy()