Rename File on Server not working?
Richard Gaskin
ambassador at fourthworld.com
Mon May 8 19:29:53 EDT 2017
Rick Harrison wrote:
> I was trying to use rename file
> on the Server in a .lc script
> to rename a file. It doesn’t
> seem to work at all. Can
> someone please let me know
> if it works on an LC Server?
It should. Try checking the result immediately after, and if not empty
call sysError() for the OS error number, e.g.:
move file tSrcPath to tDestPath
if the result is not empty then
put the result && "(" & sysError() &")"
end if
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list