programming for record button

try to move the file to the directory, but failed