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 ' + ExtractedCompiler + ' to ' +
BootstrapCompiler);
sysutils.DeleteFile(BootstrapCompiler); //ignore errors
OperationSucceeded:=renamefile(ExtractedCompiler, BootstrapCompiler);

Renaming is not the same as moving. Renaming only works if source and destination are on the same volume.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to