Transferring files to USB RRS feed

  • Question

  • Hi,

    I want to transfer some files to a USB drive. I am using C++,MFC,GDI+.

    Can you please let me know if there is a way to transfer the files to USB programatically.


    Friday, April 24, 2015 5:26 PM


  • Yes, the core API to copy a file is CopyFile.  Just make sure the destination file is on the USB drive and it will copy there.

    The fancier way, if you want to handle wildcards, show the Explorer file copy UI and more would be to use IFileOperation

    • Marked as answer by Shu 2017 Monday, May 4, 2015 1:55 AM
    Friday, April 24, 2015 6:50 PM