{file|noext} issue in {dlgchoose}

Hi,

I want to create a button that add or delete .bak extension to selected files conserving original files. It's kind of duplicate and rename process.

Here it is:

[code]@filesonly
@nofilenamequoting

@set choice={dlgchoose|Create or restore a backup file|Create="*.bak"+Restore="{file|noext}"}

Copy AS {$choice} HERE FORCE
[/code]

The Create process is applied to all selected files whereas the restore one is only applied to the first selected file. What it seems weird to me is that

Copy AS "{file|noext}" HERE FORCE 

command works perfectly by itself for all selected files.

Help to create this button would be appreciated.

If you're specifying a non-wildcard name for the destination file, you should probably specify the full name of the source file.

Copy {filepath} AS {file|noext} HERE FORCE

I don't think you want those quotes around {file|noext} either, since it is given quotes automatically. (Or if you want to put the quotes in explicitly, add @nofilenamequoting to the top of the command so they aren't doubled up.)