I'm working on a script that involves copying an entire path from one place to another. Both of the paths I'm copying contain variables. Here's the relevant part of the script:
CODE

BeginDraw UseCurrent
 Messagebox "Copying..."
EndDraw

MkDir f:HDDLoader%NewPath%
Copy %_GameDir% f:HDDLoader%NewPath%

BeginDraw UseCurrent
 Messagebox "Copy complete"
EndDraw
Delay 3


The script successfully copies everything from one place to the other, and then bombs out before changing the message box. Any ideas as to what could be the problem?

Edit: Took the script out of the .xas and put it into the mxm.xml, and got an error code: "(copy) command not implemented." But it does copy stuff.