Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Sven Barth
Am 10.02.2012 13:31, schrieb Reinier Olislagers: 2. What is the function for "properly" moving files in FPC that also moves between partitions, if one exists? What I'd use in those cases: var dest, source: TFileStream; begin dest := Nil; source := TFileStream.Create(aSourceFileName, fmOp

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread michael . vancanneyt
On Fri, 10 Feb 2012, Reinier Olislagers wrote: On 10-2-2012 13:09, Jonas Maebe wrote: On 10 Feb 2012, at 12:19, Reinier Olislagers wrote: Trying to move a file (and rename it at the same time): //ExtractedCompiler is a string variable //BootstrapCompiler is a string property //I'm using m

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Jonas Maebe
On 10 Feb 2012, at 13:31, Reinier Olislagers wrote: 1. Renaming is not moving??? The help says: "RenameFile renames a file from OldName to NewName. The function returns True if successful, False otherwise. Remark: you cannot rename across disks or partitions." What does this mean, then? If y

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said: > 1. Renaming is not moving??? > The help says: > "RenameFile renames a file from OldName to NewName. The function returns > True if successful, False otherwise. Remark: you cannot rename across > disks or partitions." > What does this mean, then?

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 13:09, Jonas Maebe wrote: > > On 10 Feb 2012, at 12:19, Reinier Olislagers wrote: > >> Trying to move a file (and rename it at the same time): >> >> //ExtractedCompiler is a string variable >> //BootstrapCompiler is a string property >> //I'm using my own version of debugln, not impo

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Jonas Maebe
On 10 Feb 2012, at 12:19, Reinier Olislagers wrote: Trying to move a file (and rename it at the same time): //ExtractedCompiler is a string variable //BootstrapCompiler is a string property //I'm using my own version of debugln, not important here debugln('Going to rename/move ' + ExtractedCom