I want to transfer all my files and folders from one drive to another. Can anyone suggest how I could code this?
Many thanks
Printable View
I want to transfer all my files and folders from one drive to another. Can anyone suggest how I could code this?
Many thanks
In windows explorer, select the root folder(s), click and drag to the other drive. Wait! Done!
Sorry perhaps I didn't make myself clear. I meant how can I do this using C++ code.
In plan C++, not. You need some extensions, such as the WinAPI or Boost.Filesystem.
Then you just walk through the directories and files recursively, creating the equivalent structure at the target and calling move (That's boost::move or MoveFile or ...) for each file.