Copy file to Destination with Name of parent folder and original ext

How can i make a Button that Copy one selected File to Destination with Name of Parent Folder and extension of the file without renaming in Source

e.g.:

source:

x:\foldername
abcde.doc

to destination as foldername.doc

Try

Copy AS={filepath|..|noterm|nopath}{file|ext}
1 Like

wow thats tricky
thanks, that works