move
Moves a file from one location to another.
Method of
FileSyntax
int move( FileSpecObject source, FileSpecObject dest);Parameters
The
movemethod has the following parameters:Returns
An integer error code. For a list of possible values, see Return Codes.
Description
You must create a FileSpecObject for the destination directory to pass in for this function. If the destination doesn't already exist a file name for the destination is assumed.
Example
source = getFolder("Program", "file.txt"); dest = getFolder("Chrome"); err = File.move(source, dest);
| Netscape Communications devedge.netscape.com |