how can I copy file from folder to folder with c++

how can I copy file from folder to folder with c++ ?
might be system echo smth...
Use the standard filesystem library:
https://en.cppreference.com/w/cpp/filesystem/copy
you can indeed use system to use c++ to make a more complex 'batch file' like program that can do a little more than batch files or do it a little easier/cleaner.

if your program is not just an extended batch file, you should avoid using system in favor of better tools though. System has security risks and is a crude tool suitable only for very small problems at best, never use it in a serious project.
Topic archived. No new replies allowed.