Opened 15 years ago

Closed 15 years ago

#624 closed Feature Request (Rejected)

FileCopy() - need better error return, and maybe protect existing dest file

Reported by: Arbie Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


After a bit of research on using FileCopy(), here are two suggestions:

1) Make FileCopy() return "@error" so that elaborate means are not required to determine the success of the operation.

2) Don't delete an existing destination file before making the copy, if you can avoid it.

Thanks for a great program -

  1. Baker

Attachments (0)

Change History (3)

comment:1 Changed 15 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:2 Changed 15 years ago by jpm

I don't understand your second point as you need to use flag=1 to overwrite an existing file.

comment:3 Changed 15 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed

If you are not satisfied with the behavior of FileCopy(), then wrap the built-in function with your own function that has the other functionality you desire. As for your second point, JP is right. The destination must be deleted before the copy can take place and that only happens if you specify a flag.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.