Hello,
I search to create 2 buttons that will paste files:
1/ The first would paste a file without displaying a dialog box if there's a file with the same name in the destination abd would replace the existing files with the pasted files
2/ The second would paste the file(s) WITH displaying the dialog box to permit to rename this file.
2 notes:
- I have searched the forum, however PhpBB without mod has a poor search system... so I obtain always too many pages and never find a topic about this
- I have already succeeded to create a button that move or copy the files to the destination with displaying the dialog box that permits to rename the files. However, I fail to find the solution to do that for a simple paste command.
Any help would be appreciated.
PS: I know my english is terrible....
The Clipboard PASTE command does not permit specifying file names, when copying-and-pasting (or cut-and-pasting) selected files to-and-from the clipboard. If a pasted file already exists, it will always be pasted with a name like Copy (n) of Filename.ext.
It might be better to use a Dual File Display Lister with two Copy command buttons. You then select files in one file display, and click a button to have them copied to the other file display. With the Copy command, you have much more control over when files are overwritten, and when you are prompted for a new name.
Copy WHENEXISTS=replace
Copy WHENEXISTS=ask
[quote="kenalcock"]It might be better to use a Dual File Display Lister with two Copy command buttons. You then select files in one file display, and click a button to have them copied to the other file display. With the Copy command, you have much more control over when files are overwritten, and when you are prompted for a new name.
Copy WHENEXISTS=replace
Copy WHENEXISTS=ask
I have already these buttons.
However, they don't fit my needs.
And with the advanced mode?
Isn't possible to script what I need?
No it is not possible. The Clipboard PASTE command does not support renaming Copied files when they are pasted.