Microsoft SDK for Java

File.copyOver

Copies an existing file to a new or existing file.

Syntax

public static void copyOver( String sourceFileName, String destFileName )

Parameters

sourceFileName

The name of the file to copy.

destFileName

The name of the destination file to copy to.

Exceptions

WinIOException thrown if an error occurs.

Remarks

Unlike the copy method, this method does not raise an exception if the destination file exists.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.