Rename File on Server not working?

Richard Gaskin ambassador at
Tue May 9 01:29:53 CEST 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      

More information about the use-livecode mailing list