renaming files
Ken Ray
kray at sonsothunder.com
Wed Feb 4 13:09:45 EST 2009
On 2/4/09 9:45 AM, "Jim Ault" <JimAultWins at yahoo.com> wrote:
> Use the rename command, but you need to be careful.
>
> You should do a few checks as you go, such as
>
>
> if there is a file (tFullPathName) then
> rename tFullPathName to tNewFullPathName
> wait 20 milliseconds --for the hard drive task to finish
> if there is not a file (tNewFullPathName) then
Doesn't the rename command return an error in the result if it can't do the
renaming? Or am I misremembering this...
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list