MoveFile() on SD-Card

Hi all,
Can someone tell me if the function MoveFile(src, dest) works with paths that pointed on a SD-Card

Example:
srcpath = \SD-Card\Test\file.txt
destpath = \SD-Card\Test\file2.txt
MoveFile( srcpath , destpath );
DWORD error = GetLastError();

error is 3 which means "The system cannot find the path specified."


Regards,
Karin




Answer this question

MoveFile() on SD-Card

  • Tony Rodriguez

    Mine is called "SD Card", without the dash. Someone here posted a method for getting the name of a storage card; might be worth looking for.

    ---Mike


  • maqk

    Sorry, that was my fault. It was a bug in my code. The char array was to small. :)
    Thanks for help.

    Regards
    Karin

  • MoveFile() on SD-Card