copyitem warning shows incorrect file name

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
altoclef
Posts: 99
Joined: 12 Oct 2012 18:54
Location: Win11 24H2 @100%

copyitem warning shows incorrect file name

Post 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
You do not have the required permissions to view the files attached to this post.

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: copyitem warning shows incorrect file name

Post by admin »

Confirmed. But that message isn't mine. It's a Windows bug. Send them the report. Good luck! :)

altoclef
Posts: 99
Joined: 12 Oct 2012 18:54
Location: Win11 24H2 @100%

Re: copyitem warning shows incorrect file name

Post 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?

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: copyitem warning shows incorrect file name

Post by admin »

SHFileOperationW

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

Post Reply