Moving a File

J. Landman Gay jacque at hyperactivesw.com
Tue Mar 6 13:57:40 EST 2007


Dave wrote:
> Oh, and BEWARE!!!
> 
> If you have two files:
> 
> /FolderA/FolderB/FolderC/FileX.xxx
> /FolderA/FolderB/FolderC/FileY.xxx
> 
> 
> rename /FolderA/FolderB/FolderC/FileX.xxx to 
> /FolderA/FolderB/FolderC/FileY.xxx
> 
> You will end up with one file called FileY.xxx! IOW, if the file exists 
> in the destination path it will quite happily OVERWRITE it!

Brace yourself, because the "url" syntax will do the same thing:

   put myData into url ("file:"&tURL)

If the file already exists, it is overwritten. Hopefully this will save 
you some frustration.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list