Drag&Drop handler for ROBOCOPY (or XXCOPY) !!
Moderators: white, Hacker, petermad, Stefan2
Drag&Drop handler for ROBOCOPY (or XXCOPY) !!
The major use I have for Total Commander is sorting out folders of work files - moving them from desktop computers and laptops onto a central server, after the projects are over.
I find it very beneficial to keep the original file and folder dates, so they can easily be found at a later date, and so that I can see what other projects were done around the same time.
Total Commander and Windows Explorer are incapable of this, but XXCOPY can keep the original folder dates, as well as Created, Modified and even Accessed dates of files. Robocopy can keep folder timestamps and some file timestamps intact as well.
There is a GUI available for Robocopy, but using the Total Commander interface is much much quicker, and I am very surprised that this ability is not yet available with any plugin!
XXCOPY is not free, while Robocopy is a standard part of Vista/2008, and can be added though the Resource pack for Win2003 on XP and Win2003. There are four versions of Robocopy that are currently widely used, and they have slightly different switches and abilities.
I would love it if somebody with the ability made a Drag&Drop handler for this. I can help with the version information!
Cheers
I find it very beneficial to keep the original file and folder dates, so they can easily be found at a later date, and so that I can see what other projects were done around the same time.
Total Commander and Windows Explorer are incapable of this, but XXCOPY can keep the original folder dates, as well as Created, Modified and even Accessed dates of files. Robocopy can keep folder timestamps and some file timestamps intact as well.
There is a GUI available for Robocopy, but using the Total Commander interface is much much quicker, and I am very surprised that this ability is not yet available with any plugin!
XXCOPY is not free, while Robocopy is a standard part of Vista/2008, and can be added though the Resource pack for Win2003 on XP and Win2003. There are four versions of Robocopy that are currently widely used, and they have slightly different switches and abilities.
I would love it if somebody with the ability made a Drag&Drop handler for this. I can help with the version information!
Cheers
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
2Jason404
Have you tried to create a button for copying your folders?
Something like:
Just:
- right-click on button bar -> Change
- click on Add button,
- specify fields like above,
- use F1 for more info about parameters.
I hope this will fulfill your needs.
Have you tried to create a button for copying your folders?
Something like:
Code: Select all
Command: C:\Program Files\system\Windows Resource Kits\Tools\robocopy.exe
Parameters: %P%N %T /COPYALL
- right-click on button bar -> Change
- click on Add button,
- specify fields like above,
- use F1 for more info about parameters.
I hope this will fulfill your needs.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
#128099
#128099
@ Hacker - Thanks!
@ Fenix_Productions -
Sorry for taking a while to reply. It's only now that I have tried your idea. It seems like a very good potential solution, having looked into this custom button business, but I cannot get it to work for some reason.
Putting aside the more complex switches that I actually would like to use..
.../E /NDL /NP /NFL /DCOPY:T /LOG+:"C:\Documents and Settings\All Users\Desktop\Robocopy.log" /ZB /R:6 /W:10
..I tried to start off with the simple /COPYALL switch. I filled in the dialogue box like this:
Image: http://farm4.static.flickr.com/3016/2648758282_ecbd635292_o.gif
Even though the directory is in the PATH, I tried with the full path to it as the Command. The Start Path seems to have filled in automatically (I have never understood what that field meant, on shortcuts or here).
After making this button, I tried highlighting one folder on the left pane in TC, and then made the right pane active (path on same drive, for simplicity), then pressed the button. I could see a a CMD prompt windows very briefly flash up and then disappear, and nothing else seems to happen.
I tried changing the parameters to %P%N %T\%N /COPYALL as well, but the same happens with that. I also tried putting quotes in, in case the spaces were causing an error, eg. "%P%N" "%T" /COPYALL.
------------------------------------------------------------------------------------
Edit: I got it working!
I put a question mark in front of the parameter (?%P%N %T /COPYALL), and then I realised where I was going wrong. I have to left click to select the source folder or file before pressing the custom button. The parameter needed a bit of tweaking as well. I have now made MOVE buttons that I want, keeping file and folder timestamps, with and without
Parameter: %P%N %T%N /E /NDL /NP /NFL /DCOPY:T /MOVE /LOG+:"C:\Documents and Settings\All Users\Desktop\Robocopy.log" /ZB /R:6 /W:10
Works great on my laptop. I still have to see how it works with UNC paths, administrative shares and mapped drives when I get back home. I suppose the temporary drive mapping switches in Robocopy cannot be used easily, but that does not matter.
Now that this works, I am going to move onto using XXCOPY instead, as that can keep Created, Modified, and Accessed timestamps for folders and files.
Thanks a lot for this method! Total Commander is excellent.
@ Fenix_Productions -
Sorry for taking a while to reply. It's only now that I have tried your idea. It seems like a very good potential solution, having looked into this custom button business, but I cannot get it to work for some reason.
Putting aside the more complex switches that I actually would like to use..
.../E /NDL /NP /NFL /DCOPY:T /LOG+:"C:\Documents and Settings\All Users\Desktop\Robocopy.log" /ZB /R:6 /W:10
..I tried to start off with the simple /COPYALL switch. I filled in the dialogue box like this:
Image: http://farm4.static.flickr.com/3016/2648758282_ecbd635292_o.gif
Even though the directory is in the PATH, I tried with the full path to it as the Command. The Start Path seems to have filled in automatically (I have never understood what that field meant, on shortcuts or here).
After making this button, I tried highlighting one folder on the left pane in TC, and then made the right pane active (path on same drive, for simplicity), then pressed the button. I could see a a CMD prompt windows very briefly flash up and then disappear, and nothing else seems to happen.
I tried changing the parameters to %P%N %T\%N /COPYALL as well, but the same happens with that. I also tried putting quotes in, in case the spaces were causing an error, eg. "%P%N" "%T" /COPYALL.
------------------------------------------------------------------------------------
Edit: I got it working!
I put a question mark in front of the parameter (?%P%N %T /COPYALL), and then I realised where I was going wrong. I have to left click to select the source folder or file before pressing the custom button. The parameter needed a bit of tweaking as well. I have now made MOVE buttons that I want, keeping file and folder timestamps, with and without
Parameter: %P%N %T%N /E /NDL /NP /NFL /DCOPY:T /MOVE /LOG+:"C:\Documents and Settings\All Users\Desktop\Robocopy.log" /ZB /R:6 /W:10
Works great on my laptop. I still have to see how it works with UNC paths, administrative shares and mapped drives when I get back home. I suppose the temporary drive mapping switches in Robocopy cannot be used easily, but that does not matter.
Now that this works, I am going to move onto using XXCOPY instead, as that can keep Created, Modified, and Accessed timestamps for folders and files.
Thanks a lot for this method! Total Commander is excellent.
My main gripe in life and in TCmd is Time
This is my main and major disappointment with Total Commander, after having used it for decades now and all the advanced features it surprises me that the copy dates feature is not more extensive but rather limited and deluding from the truth of not copying the dates correctly. I don't think this is just a request but rather something very critical for a complete, advanced file transfer.
Robocopy is certainly a reliable alternative. I just wanted to add
Robocopy does support copying directory timestamps with the flag:
/DCOPY:T
Robocopy is certainly a reliable alternative. I just wanted to add
Robocopy does support copying directory timestamps with the flag:
/DCOPY:T
- Vochomurka
- Power Member
- Posts: 814
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Re: Drag&Drop handler for ROBOCOPY (or XXCOPY) !!
Did you read this? I use Xxcopy since 2003 without paying a penny. If there are some limitations for free license, I haven't found them yetJason404 wrote:XXCOPY is not free
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
280sDISKs
To copy all 3 timestamps, add
CopyAllTimes=1
to wincmd.ini section [Configuration].
To copy all 3 timestamps, add
CopyAllTimes=1
to wincmd.ini section [Configuration].
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
There are just too many special options which only a tiny fraction of users would use. I don't want to clutter the already full settings dialogs with these options.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 3
- Joined: 2020-11-21, 21:52 UTC
Re: Drag&Drop handler for ROBOCOPY (or XXCOPY) !!
So, here is my take on this. I created three friendly buttons.
In my view Robocopy makes sense when you use the /MT:XX option activated, otherwise I just use the Total Commander copy function.
The /MT:XX parameter is amazing, you can parallelize the copy stream dramatically increasing the speed of the overall operation.
What normally takes 27 seconds, with /MT:32 takes me 2 or 3 seconds!!!! However, do your tests, MT:8 should be enough
But this makes only sense from SSD to SSD, since HDD are not super happy to parallelized operations
For the icons I found stuff online then used to convert to an *.ico file. URL disabled by moderator
Copy Button:
Command:
Parameters:
Tooltip: (but honestly, write what you want here)
Move Button:
Command:
Parameters:
Tooltip: (but honestly, write what you want here)
Sync Button:
Command:
Parameters:
Tooltip: (but honestly, write what you want here)
In my view Robocopy makes sense when you use the /MT:XX option activated, otherwise I just use the Total Commander copy function.
The /MT:XX parameter is amazing, you can parallelize the copy stream dramatically increasing the speed of the overall operation.
What normally takes 27 seconds, with /MT:32 takes me 2 or 3 seconds!!!! However, do your tests, MT:8 should be enough
But this makes only sense from SSD to SSD, since HDD are not super happy to parallelized operations
For the icons I found stuff online then used
Code: Select all
https: // convertio . co
Copy Button:
Command:
Code: Select all
C:\Windows\System32\Robocopy.exe
Code: Select all
%P%N %T%N /MT:32 /E /NDL /NP /NFL /DCOPY:T /LOG+:c:\temp\robocopy.log /R:6 /W:10
Code: Select all
Copy MT:32
Move Button:
Command:
Code: Select all
C:\Windows\System32\Robocopy.exe
Code: Select all
%P%N %T%N /MT:32 /E /NDL /NP /NFL /DCOPY:T /MOVE /LOG+:c:\temp\robocopy.log /R:6 /W:10
Code: Select all
Move MT:32
Sync Button:
Command:
Code: Select all
C:\Windows\System32\Robocopy.exe
Code: Select all
%P%N %T%N /MT:32 /E /NDL /NP /NFL /DCOPY:T /MIR /LOG+:c:\temp\robocopy.log /R:6 /W:10
Code: Select all
Sync MT:32