View comments | RSS feed

DWfile.copy()

Availability

Dreamweaver 3.

Description

This function copies the specified file to a new location.

Arguments

originalURL, copyURL 

Returns

A Boolean value: true if the copy succeeds; false otherwise.

Example

The following code copies a file called myconfig.cfg to myconfig_backup.cfg:

var fileURL = "file:///c|/Config/myconfig.cfg";
var newURL ="file:///c|/Config/myconfig_backup.cfg"; 
DWfile.copy(fileURL, newURL);

Comments


No screen name said on Feb 3, 2007 at 9:24 AM :
I've written an implementation of Microsoft's xCopy function which allows you to copy a directory, all its contents and infinite sub-directory's check it out here
http://byron-adams.com/archives/10-xCopy-for-Dreamweaver.html

hope this helps someone.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/02_file4.htm