I want to transfer all my files and folders from one drive to another. Can anyone suggest how I could code this?
Many thanks
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!
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
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.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law