MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Specifiche Pagina 272

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 692
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 271
Chapter 22272
Returns
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
Creates a folder (directory) at the specified location.
Arguments
folderURL
The argument is the location of the folder you want to create, which is expressed as a file:// URL.
Returns
true if the folder is successfully created; false otherwise.
Example
The following code tries to create a folder called tempFolder at the top level of the C drive and
displays an alert box that indicates whether the operation is successful.
var folderURL = "file:///c|/tempFolder";
if (DWfile.createFolder(folderURL)){
alert("Created " + folderURL);
}else{
alert("Unable to create " + folderURL);
}
DWfile.exists()
Availability
Dreamweaver 2
Description
Tests for the existence of the specified file.
Arguments
fileURL
The argument is the requested file, which is expressed as a file:// URL.
Returns
true if the file exists; false otherwise.
Vedere la pagina 271
1 2 ... 267 268 269 270 271 272 273 274 275 276 277 ... 691 692

Commenti su questo manuale

Nessun commento