Author Topic: Issue with copy to existing file  (Read 15240 times)

Mk1_

  • Newbie
  • *
  • Posts: 3
    • View Profile
Issue with copy to existing file
« on: November 12, 2014, 10:02:13 »
E.g. i have two panels with the same folder x:\temp, and there are 2 files there:

Code: [Select]
x:\temp\file.txt
x:\temp\file_bak.txt

I want to copy file_bak.txt to file.txt (replace). But after copying file.txt remains, instead file.txt (1) is created which is the copy of file_bak.txt. No overwrite dialog appears.

MC 4.5.1 (build 1769)

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4426
    • View Profile
    • Multi Commander
Re: Issue with copy to existing file
« Reply #1 on: November 17, 2014, 06:56:30 »
Use Rename and it will work as you want it.

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 542
  • Old Skull
    • View Profile
Re: Issue with copy to existing file
« Reply #2 on: November 17, 2014, 09:08:04 »
Use Rename and it will work as you want it.
As i understand, file_bak.txt - is a file that should always be the same, and file.txt is a file that is changed frequently.
So you need to replace the work file by the original copy, keeping that copy unchanged.

Of course, a script may be written, but it would require a certain naming scheme.

Mk1_

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Issue with copy to existing file
« Reply #3 on: November 17, 2014, 20:29:05 »
@Jungle: Yes, it is exactly what I want to do.