MS JScript JavaScript Tutorial

Syntax

file.Copy(destination, overwrite)
The Copy() method is used to copy a file.
overwrite is a Boolean value indicating whether to overwrite an existing file of the same name.


    
    
    
    
    Copy test.txt to mytest.txt