How can I copy and paste a file in Windows using C++?

后端 未结 6 1671
慢半拍i
慢半拍i 2021-01-18 02:15

I have googled this, but I am still confused about how to use it. I am making a file manager, and I want to be able t o copy and paste a file into a new directory. I know

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-18 02:29

    In native C++, you can use:

    • The CopyFile function : http://msdn.microsoft.com/en-us/library/windows/desktop/aa363851%28v=vs.85%29.aspx
    • CopyFileEx function for more advanced options like progress notifications. http://msdn.microsoft.com/en-us/library/windows/desktop/aa363852%28v=vs.85%29.aspx

提交回复
热议问题