News blog

What is Servoy?

Getting Started

Comparison Servoy/VFP




Code Reference


VFP2Servoy Toolkit



Contact / feedback















RENAME - plugins.file.moveFile()

In VFP you can use the RENAME command to move files. In Servoy there is a seperate function to do this.

NOTE: You cannot specify a file path in Servoy with single backslashes in it. The backslash is used to specify special characters (\t=tab for instance). You will have to remember to always use TWO backslashes instead of one to specify a single backslash (c:\\temp\\ instead of c:\temp\). We can't solve this in the function because "c:\temp" will arive in the parameter as "c: temp" (with a tab in it).

You cannot use wildcard characters in filenames in Servoy.


VFP code example

RENAME c:\temp\test.xml TO c:\test.xml   && moves the file


Servoy code example


// alternatively:

globals.MOVEFILE("c:\\temp\\test.xml, "c:\\test.xml"); 

Note: MOVEFILE() is a function of the VFP2Servoy Toolkit



External resources:


vfp plugin


ServoyWorld 2012 pics


Official Servoy website


Ken Levy on Servoy


Servoy info


Servoy Forum


Servoy Documentation © 2010-2012 • All rights reserved • Contact: