Be aware that Borislav's solutions requires that WSH (Windows Scripting Host) is installed, this may not always be the case. This WinAPI solution is always possible:
declare Integer MoveFile in win32api string @ src, String @ dest
lSuccess = !empty(MoveFile('\temp', '\temp1'))
>yes
>thank you very much.
>and thanks to Tore,Hilmar and Alex