Mass renaming files: Any option to Overwrite All Existing?

Hi all. Been a Dopus user since the end of October, and I've been loving it thus far! However, I have a problem, and I was not able to find a solution whilst searching these forums (the threads I found that were closest to my problem were all around twenty years old, so I doubt they're relevant to dopus today haha), unless I just missed it. If I did, please point me there!

Anyway. Long and short of it is that Onedrive ballsed up and downloaded a bunch of old versions of files on my PC that I didn't want it to, and then renamed the existing (newer) files on my PC to make way for the new (old) files. No confirmation dialogue or anything, just did it without asking >_>

An easy way for my to fix it is Dopus's mass-rename function. I'll post a screenshot that tries to demonstrate what I want to do:


tl;dr I wish to remove "-JOSH-NINTENDOPC" (what can I say, I love retro games haha) from all these files, and have them overwrite the old ones Onedrive downloading without me asking it to. Seems simple enough, right?

Unfortunately, there is one major problem:


I cannot do it for all these files at once, regardless of whether I do a Find/Replace or Find/Replace + Regex. If I want it to replace all the existing files, there is no "Do this for all conflicts" option that I can find. I have to select the option for every single file, one by one.

This would be a mere annoyance if I only had a few files to do it for. The problem is that I have around 400 files that need it. Having to hold shift/the button every single time would take far too long, and just wouldn't be feasible with my sanity intact.

My last ditch effort was to try this with the Unattended tickbox:


but there we have yet another problem: it didn't work. Even getting it to the option I wanted was like pulling teeth, as the error dialogue prevent me from selecting anything else in the window, so I had just about a single second to select the dropdown each time. It took several attempts... but it was no use. Still kept getting the same errors.

At this point I'm at my wit's end, and I have not been able to find any solution (either on these forums or even just via google) that works. Even the ones that describe it are from a 20 year old version of Dopus, and I'm sure it's changed a lot in that time!

Is there I can do to work around this? I apologise if there's an obvious solution I'm missing here (I did check the reference manual but could not find what I needed), but any and all help would be appreciated.

Thanks!

Rename them into a temp subfolder, then overwrite the old files with Copy MOVE.

You can do this with the Rename command even though the dialog doesn't let you specify "replace all" or "delete all".

rename pattern *-JOSH-NINTENDOPC to * recurse whenexists=delete ignoreext

this seems like it could work. Where would I enter this? I realise this is probably a dumb noob question haha so apologies for that, I just want to make sure I don't screw something up. Would that go in the command line or something?

@lxp (I don't know how multiquoting works on this software, I've been using forums for almost 20 years but this software is quite different from any I've used before!)

That is a good solution as well, I will try that if I cannot get the one @Jon posted to work.

I appreciate both of your responses!

See the "Raw Commands" part of How to use buttons and scripts from this forum

That command worked! Thank you all so much for your (very swift!) help, you really did me a solid! :smiley:

2 Likes