Rename, overwrite situation

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 4953
Joined: Thu Sep 03, 2009 6:48 pm

Rename, overwrite situation

Post by therube »

(just pointing out...)


Rename, overwrite situation

single file rename
- you're afforded the ability to overwrite

multi file rename
- Error 183: Unable to rename: File already exists.

x/xxx.mp3
x/xxx out.mp3
y/xxx.mp3
y/xxx out.mp3

select both outs & multi-rename to "xxx.mp3"


(something /similar/ with Parent -> Paste, & that bring up a Windows "overwrite" dialog
[which i'm always confused by - probably cause i virtually never use "Windows Explorer"
& seemingly always get wrong - or at the very least, this time ;-)]
[even if i were familiar with it, i'd probably still be confused by it.]

(& i believe someone recently asked for the Windows Explore way - ugh, heh)
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Rename, overwrite situation

Post by raccoon »

I think void is weighing consideration for writing his own copy program (fastcopy, teracopy, robocopy, bacula, etc), and integrating it into Everything. He has mentioned a few times about doing his own paste or copy handling. But clearly it's a rabbit hole.
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Rename, overwrite situation

Post by void »

This assumes you have enabled rename_overwrite.


The next alpha update will prompt to overwrite when rename_overwrite is enabled and when using the multi-file renamer.
Thank you for the suggestion.


(something /similar/ with Parent -> Paste, & that bring up a Windows "overwrite" dialog
[which i'm always confused by - probably cause i virtually never use "Windows Explorer"
& seemingly always get wrong - or at the very least, this time ;-)]
[even if i were familiar with it, i'd probably still be confused by it.]
Currently, Everything will let the shell handle pastes.
Everything will only take over if a pasted filename is longer than 259 characters.

What kind-of dialog would you like to see here?
-just a simple dialog? for example:

Overwrite xxx.mp3?

The filename already exists.

Yes / No
meteorquake
Posts: 495
Joined: Thu Dec 15, 2016 9:44 pm

Re: Rename, overwrite situation

Post by meteorquake »

I currently have my own right-click relocator which is a VBS script that pops up the item's location and if adjusted moves, copies or 7zs the file. In the instance of a conflict with A being moved/copied onto an existing B it offers the following resolutions:
* A overwrite B without preserving B
* Shift B away first by appending a timestamp
* Shift B away first by appending a timestamp and moving to subfolder _backups\
* Adjust A by appending a timestamp
* Skip - do nothing
* If problems (eg file open) ask to repeat
Where the timestamp isn't sufficient (pretty unlikely) it will also add a counter number.
It also duplicates the action on a daily-mirrored drive.
I find the Explorer options too basic because often in overwriting I want a backup in case something crops up and I have to reverse the action, and my backup folders are always the subfolder _backups\ however sometimes I want it to be in the same folder because I want to name it something else. One of my implementations is more graphical and allows finer renaming and the checking of the moved file for its own collisions.
It also implements a copy that gets it first to a temp name in the folder followed by a move since sometimes the copy will take time (particularly from a distant network) and this allows the instant replacing of the destination, and also similarly in the case of a move where the destination exists, since it confirms the item is movable before moving out the existing target file.
It would be very nice to have this sort of thing natively in Everything.
David
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Rename, overwrite situation

Post by void »

Currently, Everything uses the Windows Shell to rename.

I will consider an option to overwrite/rename original file.
Thank you for the suggestion.
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Rename, overwrite situation

Post by void »

Everything 1.5.0.1307 adds a prompt to overwrite existing files when using the multi-file renamer.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Rename, overwrite situation

Post by harryray2 »

I haven't tried this yet, but, just in case, is there a way of disabling this?
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Rename, overwrite situation

Post by NotNull »

harryray2 wrote: Fri Apr 08, 2022 6:21 pm I haven't tried this yet, but, just in case, is there a way of disabling this?
It is disabled by default.

To enable it, type the following in the search bar and press ENTER

Code: Select all

/rename_overwrite=1
Before overwriting each individual file, you will be asked if you will allow it.


To disable overwriting on rename again: /rename_overwrite=0
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Rename, overwrite situation

Post by harryray2 »

Thanks, that's fine for me if it's disabled by default.
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Rename, overwrite situation

Post by void »

Just to clarify, Everything will now show a prompt when attempting to overwrite an existing file with the multi-file renamer.

The prompt will allow you to overwrite, skip or cancel the rename/move/copy.

Previously, a rename would fail with an error message when attempting to overwrite an existing file.
Post Reply