in reply to Check if "System" was succesful

hi.
you better use use File::Copy to copy your files; and unlink returns the number of files it has deleteted.