beating a dead horse? - renaming on collision

Features wanted...
Post Reply
Joso
Posts: 95
Joined: 06 Apr 2010 14:13

beating a dead horse? - renaming on collision

Post by Joso »

I see that we can now automatically index the file name in the event of collision in both inline renaming and backup operation. How come we can't do it with move/copy functions?

Here's the scenario: all day long I produce files called "1234567m" or "1234567L" in a dir called "today". Later (much later usually) - I sort out the junk and move the files I need to keep into directories that match the "1234567" part of the file name. It's a simple as |567 and then move em. - The "1234567" dir may already contain files named "1234567m thru m6" - which I don't want to overwrite, so I have to stop and figure out what number to assign to the new "1234567m" file. (Maybe I need to write a script to do this)

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: beating a dead horse? - renaming on collision

Post by admin »

Because move/copy are still handled by the shell. Wait for XYcopy 2.0... :)

Sander Bouwhuis
Posts: 249
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: beating a dead horse? - renaming on collision

Post by Sander Bouwhuis »

So, you mean that there will be a setting that will automatically copy and rename files like this:

Before:
Dir 1\My file.txt (1000 bytes)
Dir 2\My file.txt (2000 bytes)

Then copy the 'My file.txt' from 'Dir 1' to 'Dir 2'.

After:
Dir 1\My file.txt (1000 bytes)
Dir 2\My file.txt (2000 bytes)
Dir 2\My file (2).txt (1000 bytes)

I.e., there will be no more annoying popup where you first have to set the 'Do this for all files' checkbox and then choose 'Copy and replace files''?

That would be wonderful!!!
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: beating a dead horse? - renaming on collision

Post by admin »

iycgtptyarvg wrote:So, you mean that there will be a setting that will automatically copy and rename files like this:

Before:
Dir 1\My file.txt (1000 bytes)
Dir 2\My file.txt (2000 bytes)

Then copy the 'My file.txt' from 'Dir 1' to 'Dir 2'.

After:
Dir 1\My file.txt (1000 bytes)
Dir 2\My file.txt (2000 bytes)
Dir 2\My file (2).txt (1000 bytes)

I.e., there will be no more annoying popup where you first have to set the 'Do this for all files' checkbox and then choose 'Copy and replace files''?

That would be wonderful!!!
Yes.

Note that you can already script this now using the backupto command.

Sander Bouwhuis
Posts: 249
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: beating a dead horse? - renaming on collision

Post by Sander Bouwhuis »

I checked the help file, and it stated I needed to press <CTRL-SHIFT-F7> to do the 'Backup to' function.
But, that doesn't copy'n'paste my selection to the destination. Is it possible to (after having done the 'copy' part) to right click the destination and do the 'paste' part to accomplish this?

If so, what 'script' do I need to add to the right-click popup menu?
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: beating a dead horse? - renaming on collision

Post by admin »

iycgtptyarvg wrote:I checked the help file, and it stated I needed to press <CTRL-SHIFT-F7> to do the 'Backup to' function.
But, that doesn't copy'n'paste my selection to the destination. Is it possible to (after having done the 'copy' part) to right click the destination and do the 'paste' part to accomplish this?

If so, what 'script' do I need to add to the right-click popup menu?
You cannot add a script to the right-click popup menu. But you can add it to the toolbar (User Buttons...).

I'm was not talking about the 'Backup to' function, but about the scripting command backupto.

Code: Select all

backupto location, [source], [on_collision], [preserve_dates], [create_log], [pop_stats]

Sander Bouwhuis
Posts: 249
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: beating a dead horse? - renaming on collision

Post by Sander Bouwhuis »

Ok, I looked at this command, and I could set <curpath> for the location to be able to copy it to the current directory.

But, how do I set the source to use the clipboard? (or whatever it's called after you have chosen some files/directories and selected 'Copy' from the right-click popup menu)

Edit:
Actually, now that I looked at the 'File operations' settings it would appear this feature already exists! All we need is to have the setting be applied not only to the 'backup' operation, but to all copy operations.
Or, have a way to always do a backup operation when you do a copy operation.
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: beating a dead horse? - renaming on collision

Post by admin »

iycgtptyarvg wrote:Edit:
Actually, now that I looked at the 'File operations' settings it would appear this feature already exists! All we need is to have the setting be applied not only to the 'backup' operation, but to all copy operations.
Or, have a way to always do a backup operation when you do a copy operation.
Yes. :) This is what will soon be added as "XYcopy 2.0"... it's not that easy to streamline it into the interface, but I'm working on it...

Sander Bouwhuis
Posts: 249
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: beating a dead horse? - renaming on collision

Post by Sander Bouwhuis »

Ah, ok. In that case I'll wait until it works out-of-the-box.

Thank you for your support.
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

Post Reply