This function renames the specified file.

syntaxSyntax:
DlxFile.Move(newName)

Parameters

Parameter Description
newName New path of a file.

Return Value

If the file is renamed correctly it returns true. If an error occurs it returns false.

Remarks

If a full path is not specified, each file path is assumed to be relative to the Drawlogix working directory. For example, the relative path "myscripts\firstscript.clxjs" is changed to the full path "c:\....\documents\alterlogix\drawlogix\myscripts\firstscript.clxjs".

Example

  Copy codeCopy code
var file = new DlxFile("olddemofile.txt");
file.Move("newdemofile.txt");

See also