This function can rename a folder/directory, or literally Move the directory to anywhere in the tree on the same volume. (It cannot move from one volume/disk drive to another).
Code:
FUNCTION RenDir( OrigDir, NewDir )
DECLARE INTEGER MoveFile IN WIN32API AS apiMoveFile STRING lpExistingFileName, STRING lpNewFileName
RETURN 0<>apiMoveFile( OrigDir, NewDir )
ENDFUNC
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.