Can you send us a screenshot of the DMA error you are getting? I'm not sure why you would get a DMA error while doing file I/O. However, here are some things to keep in mind when solving this problem.
1) Be sure that you are not writing to the file while you are performing the moving and renaming actions. i.e. they should not act in parallel
2) Be sure that you close the reference to the file before you move/copy/rename the file
I am attaching an simple example of how I would go about doing it. Hope it helps.
Jack J.
Applications Engineer
National Instruments