I have a code which should copy d://folder//(unknownDir)//black.txt to d://folder//red//white.txt but it doesn't work and I don't understand why. I'm trying a code with copy function of windows.h (path variable doesn't work). Do you have any clue what's wrong here?
In the code I posted there are no problems, but care must be taken with the configuration of the "character set" in a Windows build.
"Some weird symbols" isn't much information to go on, but I do recognize the results are "easier" to deal with in a Unicode build as opposed no MCBS or "not set" modes (ASCII).
In order to help you we must see the exact code you're commenting about, and that can't be the original code you posted, it is performing multiple copies with confusion as to what character set you're configured for.
Windows, by default, uses Unicode (which wasn't a good choice), so the string literals shown in your code (and the example I posted) are not "tagged" to mutate properly.