Clipboard copy, help needed

Hello,

from the internal commands summery I find:

ADD: Use together with COPY; selected files are added to the clipboard contents and any existing files on clipboard are preserved

So the code would be (I guess):

Clipboard COPY ADD

If I create a button with this code, nothing happens, not even one file will be seen inside the clipboard.

I check the forum for help and I find a hint "SetClip" and read further down:

Note 2: Directory Opus 9 added a new, built-in Clipboard SET command which makes SetClip.exe largely obsolete.

Whatever I do, I cannot add anything to the clipboard with these commands, BUT:

@nofilenamequoting
Clipboard COPYNAMES

is working fine for me.

Anyone knows what I am doing wrong?


DirectoryOpus Vers 9.5.2, german
Windows XP, SP 2, german

The three things you've mentioned all do different things.

Do you want to add the files (as something you can paste into a file manager to copy the files), or the file names (as text you can paste into a text editor) or the file contents (as text) to the clipboard?

I would like to select different files, step by step and copy the file name into the clipboard - so that the already copied filenames are still there.

So I guess it this:
file names (as text you can paste into a text editor)

Thanks for you help !

You could create a button with the following MS-DOS command:

echo {filepath$} >> C:\Temp\FileList.txt

Select a file, click the button and the filename will be copied to a file called FileList.txt in the C:\Temp\ folder. Further clicks of the button will add to this text file.

Take a peek at this post which may help:

[url]Creating a log file]

This little program would do what you want. It monitors the clipboard and everything you copy is automatically added to it's window. You can then manipulate the list as desired.

SetClip.exe has a -a argument to make it append a string to the clipboard, so you could pass the filenames to that to get what you want as well.

thanks for all your hints !!