DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: File replacer  (Read 7,826 times)

magician62

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 180
IDEA: File replacer
« on: July 24, 2011, 01:17 PM »
The idea came to me whilst using Switcheroo

Using a similar interface

First row is the 'Target'
Second row the 'Replacement'

Concept

Drag Target file to 'Target'
Drag Replacement file to 'Replacement'

On running the Replacement file is renamed to the target and then moved to replace the target (though the sequence may be slightly different to avoid conflicts)

Mouse only operation:-

Advantage two file drag-drop, and run. Total 3 actions (4 if confirm is an option)


Existing option
Use Switcheroo
Two drag-drop, switch, select Replacement, rightclick, delete, confirm. Total 7 actions

Using Windows (7)
Select target file, select filename, rightclick copy filename, select Replacement file, select filename, paste filename, select Replacement, rightclick, copy Replacement file,  select Target location, paste file, allow overwrite, select Replacement file, right click, delete, confirm  Total 16 actions

If there is already something out there...

Many thanks
Why an I Magician62? Because Magician1 thru 61 were gone. :)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: IDEA: File replacer
« Reply #1 on: July 24, 2011, 04:23 PM »
I've added your request to Switcheroo.  Please give this build a try with some test files/folders.  Do not use it on your production files until you're sure it does what you want.  Let me know how it works out for you.  Thanks.

http://skwire.dcmembers.com/apps/switcheroo/Switcheroo_.zip

magician62

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 180
Re: IDEA: File replacer
« Reply #2 on: July 24, 2011, 04:48 PM »
The file replacement appers to work ok. The only issue I can see is that it requires both files on the same drive.

Is this associated with the issue that existed where it was not the file swithed but the content in 1.0.3 build 1?

Ideally a multi drive environment should be supported
Why an I Magician62? Because Magician1 thru 61 were gone. :)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: IDEA: File replacer
« Reply #3 on: July 24, 2011, 05:02 PM »
The only issue I can see is that it requires both files on the same drive.

Yes, I added this as well.  I do not want to have to handle potentially large file/folder transfers across drives.  To begin with, I really don't like writing apps that mess with users files.  Furthermore, the native Windows API file operation methods are primitive and I've no desire to write my own handlers.

Ideally a multi drive environment should be supported

I wholly disagree when it comes to this.  Switcheroo was intially designed to switch two filenames that existed in the same folder.  This was to save the user having to manually use a temporary filename.  All this extra tacked-on stuff just makes me cringe insofar as accidentally screwing up users' files goes.
« Last Edit: July 24, 2011, 05:37 PM by skwire »

magician62

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 180
Re: IDEA: File replacer
« Reply #4 on: July 24, 2011, 05:07 PM »
Many thanks for the reply. I can understand the concerns. I can adjust my workflow and probably accomplish the same with the new version of Switcheroo.

Why an I Magician62? Because Magician1 thru 61 were gone. :)

worstje

  • The Gent with the White Hat
  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 589
    • Coding Snacks
    • Participated in NANY Challenge Three Times
Re: IDEA: File replacer
« Reply #5 on: July 24, 2011, 05:37 PM »
Wrong topic. Drats.
« Last Edit: July 24, 2011, 05:42 PM by worstje »

Original address: https://www.donationcoder.com/forum/index.php?topic=27431.0