Copy & Move with TeraCopy

I just recently stumbled across TeraCopy and am now trying to integrate it into DO V10. The copy function on this page works great, but I'm having problems with the move function. I use this for move, but it gives me an error:

<?xml version="1.0"?>
<button backcol="none" display="icon" icon_size="large" textcol="none">
   <label>TeraMove</label>
   <tip>Move files with TeraCopy</tip>
   <icon1>#setdest</icon1>
   <function type="normal">
      <instruction>&quot;C:\Program Files\TeraCopy\TeraCopy.exe&quot; Move *{allfilepath|filem} {destpath}</instruction>
   </function>
</button>

So, I tried to one under preferences in TeraCopy:

<?xml version="1.0" encoding="UTF-8"?>
<usercommand backcol="none" textcol="none">
<label>TeraCopy_MoveFile</label>
<tip>Move files with TeraCopy</tip>
<icon1>%ProgramFiles%\TeraCopy\TeraCopy.exe,2</icon1>
<function type="normal">
<instruction>%ProgramFiles%\TeraCopy\TeraCopy.exe Move *{allfilepath|filem} {destpath}</instruction>
</function>
</usercommand>

Same error every time.
exception message : Cannot open file "". The filename, directory name, or volume label syntax is incorrect.

Just looking for some help with this.

Your second command doesn't have quotes around the teracopy exe path, which may be the problem.

Thanks for your quick reply. So I tried something like this:

"%ProgramFiles%\TeraCopy\TeraCopy.exe" Move *{allfilepath|filem} {destpath}

But I get the same error.

Try this (click "Advanced" if needed, so you can enter a two-line command in the button editor):

@nofilenamequoting
"%ProgramFiles%\TeraCopy\TeraCopy.exe" Move "*{allfilepath|filem}" "{destpath}"

If that doesn't work then I'd recommend asking the TeraCopy author/forum/etc. for the correct command-line, or an example that would let us work out how to make Opus generate the same thing. I don't use TeraCopy myself so I'm just guessing what the problem might be.

I submitted a report with the folks from TeraCopy. I seem to be able to use the copy function fine to move the contents to the next pane in the dual pane view, but move doesn't seem to work correctly. I'll post back here when I hear something from TeraCopy (if I do)?

Could some one please explain exactly what that function should be for both ctrl +C & ctrl +x, i've been really struggling with this for ages, not nearly as clued up as everyone one else here. Sorry if it seems a dumb question, but I just can't get teracopy to intercept these commands when using DO 10. I'm a complete Newb to DO. Thnx in advance to any & all who can help

Hello, any feedback on this topic ?

Best regards

How would I go about adding a Move AS or Copy AS command using Teracopy? It's probably a simple change, but I'm being lazy. :slight_smile:

Hi,

I integrated Teracopy in Directory Opus and now I want to remove it. I removed all Teracopy items except the Drop-Menu that appears if I drag & drop using the Right mouse button. When I did it I didn't assign any name and now I can't find it in Settings -> Filetypes -> All Files and Folders -> Drop Menu
Please help me, how can I remove this item?

If it's not in the Drop Menu for that file type or any of the others (e.g. All Folders) then it could be the menu items are being added by Teracopy itself (if it is still installed), since programs can add to the menu as well.

Yes, you are right. I uninstalled Teracopy and the items go away.
Thanks

This was the reason for joining to ask this question.
I am using latest version of tera copy 3.
I am using v.11 pro.
I would like to integrate tera copy with DO.
When I opened the text file integrated with teracopy it says[quote]Copy this code to the clipboard, go to the Directory Opus, and
paste "Copy" button to the toolbar in the Customize mode.

<?xml version="1.0" encoding="UTF-8"?>
<usercommand backcol="none" textcol="none">
<label>TeraCopy_CopyFile</label>
<tip>Copy files with TeraCopy</tip>
<icon1>%ProgramFiles%\TeraCopy\TeraCopy.exe,1</icon1>
<function type="normal">
<instruction>%ProgramFiles%\TeraCopy\TeraCopy.exe Copy *{allfilepath|filem} {destpath}</instruction>
</function>
</usercommand>

Repeat with this code to insert the "Move" button.

<?xml version="1.0" encoding="UTF-8"?>
<usercommand backcol="none" textcol="none">
<label>TeraCopy_MoveFile</label>
<tip>Move files with TeraCopy</tip>
<icon1>%ProgramFiles%\TeraCopy\TeraCopy.exe,2</icon1>
<function type="normal">
<instruction>%ProgramFiles%\TeraCopy\TeraCopy.exe Move *{allfilepath|filem} {destpath}</instruction>
</function>
</usercommand>

I've been googling for a while for what I should do exactly but failed to figure it out so here I am asking about clear instructions please if you may help me as this is really driving my nuts so far.
So how to add these codes to DO? where exactly?

The sticky post should have what you need: How to add buttons from this forum to your toolbars.

Does there is any YouTube video that make it clear?

Okay, so I've followed the instructions above, and pasted the text, and I get the following error message:

"Windows cannot find '<?xml'. Make sure you typed the name correctly, and then try again"

THis is what is in the text box

<?xml version="1.0" encoding="UTF-8"?>
<usercommand backcol="none" textcol="none">
<label>TeraCopy_CopyFile</label>
<tip>Copy files with TeraCopy</tip>
<icon1>%ProgramFiles%\TeraCopy\TeraCopy.exe,1</icon1>
<function type="normal">
<instruction>%ProgramFiles%\TeraCopy\TeraCopy.exe Copy *{allfilepath|filem} {destpath}</instruction>
</function>
</usercommand>

I didn't used to be this dim, but what am I doing wrong?

The sticky post should have what you need: How to add buttons from this forum to your toolbars.

(see the section labelled XML button definitions).

Hmmm. No, thats the section that I did. It doesn't say anything about the error message I'm getting.

You haven't followed it properly if you're seeing that error message. It sounds like you have pasted the XML into the command editor, which is not what the XML section says to do.

Really?

"Select Settings -> Customize Toolbars (the Customize window will open; keep it open but move it out of the way if it is obscuring the toolbar you want to edit)
Back in the lister, right-click your toolbar somewhere and (depending on where you clicked) there will be a New or Insert New menu. Click that menu, and then New Button.
Right-click the button that was just added and choose Edit.
For single-line commands, paste the command into the Function field.
For multi-line commands, click the Advanced button, then paste the command into the big area at the bottom."

Following these directions, I get a popup that says "XML buttons copied from the web should not be pasted into the button editor.

Instead, paste them directly onto your toolbars or menus.

To do so: Stay in CUstomize mode, right-click the desired location on your toolbar or menu, then choose paste"

And actually, with the XML code in the clipboard, this works (before, I didn't have the code already in the clipboard until after I was in the button editor). So for XML, all you need it the first step, and with your code in the clipboard, just paste it into a blank area of the toolbar.

Yes, really. :slight_smile:

As the first line of the FAQ says, "Buttons and toolbars can be shared in several different ways".

You are quoting from the Raw commands part of the FAQ, the very first section. That is for commands like the example it gives of Copy INSTALLFONT.

The section you want is the second section, which Jon referred to above, XML button definitions. That is for blocks of XML, as in the example for that section and similar to the code you're trying to use above in this thread.

1 Like