How to use CopyFile()

1. Set the default Unicode character set of the project to Not Set, write the code as follows

The function CopyFile(source, destination, false) means: if the target folder already has the same file, the file will be replaced The function
CopyFile(source, destination, true) means: if the target folder already has the same file, the file will not be replaced
insert image description here

2. Run the code and generate the target file (note that it can only be generated when you click to run the code, not compile)

insert image description here insert image description here

3. If you do not change the option of the default Unicode character set, add "L" before the path, the code is as follows

insert image description here

Guess you like

Origin blog.csdn.net/qq_34437757/article/details/113373522