RENAMEWHENSAME problem

Hello

See the button below. For some reason RENAMEWHENSAME seems not to work. There is replace dialog displayed when a file with the same name as a copied file already exists in the destination.

Any idea what's wrong here?

<?xml version="1.0"?>
<button backcol="none" display="label" textcol="none">
	<label>Przenieś obrazki</label>
	<icon1>#newcommand</icon1>
	<function type="normal">
		<instruction>Copy MOVE FILE={allfile$} TO=&quot;E:\Obrazki\&quot; RENAMEWHENSAME </instruction>
	</function>
</button>

Try adding WHENEXISTS=rename

I'd also remove the FILE={allfile$} since the Copy command (and most others) will work on all selected files by default and it's quicker & better to avoid using {allfiles$} unless you have to (since it can generate a really long command line).

That creates a question- what RENAMEWHENSAME actually does?

I found an explanation from Jon:

Thanks for the solution and the explanation.