Page 1 of 1

copyitem warning shows incorrect file name

Posted: 19 Mar 2026 16:00
by altoclef
Create a file in <xyscripts> called source.txt.

Run

Code: Select all

copyitem "<xyscripts>\source.txt", "<xyscripts>\copy.txt";
copy.txt is created (confirming that I do have the parameters in the correct order).

Run the command a second time. The Windows warning is displayed but with the source filename, when it should be warning about the existing file that is about to be overwritten.

(v27.20.1107)

overwrite.png

Re: copyitem warning shows incorrect file name

Posted: 19 Mar 2026 16:43
by admin
Confirmed. But that message isn't mine. It's a Windows bug. Send them the report. Good luck! :)

Re: copyitem warning shows incorrect file name

Posted: 19 Mar 2026 18:57
by altoclef
Before I submit a bug report, would you be willing to say in broad terms how you are coding the copy? Is it a VB6 native command or are you using a Windows API call, and which one?

Re: copyitem warning shows incorrect file name

Posted: 19 Mar 2026 18:59
by admin
SHFileOperationW

But, seriously, forget it. This will never be fixed.