On 28 Sep 2009, at 13:13, Bill Zielenbach wrote: > > local fn CopyFileX( sourceRef as ^FSRef, destDirRef as ^FSRef, > copyOptions > as OptionBits ) as OSStatus > '~'1 > dim as OSStatus err > > err = fn FSCopyObjectSync( sourceRef, destDirRef, #0, #0, > copyOptions ) > > end fn = err > > I now can copy Temp to the appropriate directory on the server, but > would > like to rename it. Having used the rename statement some time ago, I > went to > the FB 5.4 help screen and was a little confused by the writeup there: > > Any suggestions? > I can't say as I understand the question but if what you want to do is copy and rename, you can supply the new name as a CFString in the third param: err = fn FSCopyObjectSync( sourceRef, destDirRef, fn CFSTR( "new name" ), #0, copyOptions ) Bernie