Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript File Object Copy Method

Copies a specified file from one location to another.

Syntax: VBScript File Object Copy Method

object.Copy destination[, overwrite]

Arguments: VBScript File Object Copy Method

object

The name of a File object. Required.

destination

The destination where the file is to be copied. Wildcard characters are not allowed. Required.

overwrite

A Boolean value that is True (default) if existing files are to be overwritten; False if they are not. Optional.

Remarks: VBScript File Object Copy Method

The results of the Copy method on a File object are identical to operations performed using CopyFile where the file referred to by object is passed as an argument. You should note, however, that the alternative method is capable of copying multiple files.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.