EasyManua.ls Logo

MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API - Page 18

MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API
628 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
18 The File I/O API
Description
This function copies the specified file to a new location.
Arguments
originalURL, copyURL
■ The originalURL argument, which is expressed as a file:// URL, is the file you want to
copy.
■ The copyURL argument, which is expressed as a file:// URL, is the location where you
want to save the copied file.
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);
DWfile.createFolder()
Availability
Dreamweaver 2.
Description
This function creates a folder at the specified location.
Arguments
folderURL
■ The folderURL argument, which is expressed as a file:// URL, is the location of the folder
you want to create.
Returns
A Boolean value: true if the folder is created successfully; false otherwise.
000_DW_API_Print.book Page 18 Wednesday, July 20, 2005 11:58 AM

Table of Contents