12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

InstructionCopyFileFile and Serial Channel HandlingCopyFile - Copy a fileCopyFile is used to make a copy of an existing file.ExamplesCopyFile “HOME:/myfile”, “HOME:/yourfile;The file myfile is copied to yourfile. Both files are then identical.CopyFile “HOME:/myfile”, “HOME:/mydir/yourfile”;The file myfile is copied to yourfile in directory mydir.ArgumentsCopyFileOldPath NewPathOldPathData type: stringThe complete path of the file to be copied from.NewPathData type: stringThe complete path whereto the file is to be copied to.Program executionThe file specified in OldPath will be copied to the file specified in NewPath.Error HandlingIf the file specified in NewPath already exists, the system variable ERRNO is set toERR_FILEEXIST. This error can then be handled in the error handler.SyntaxCopyFile [ OldPath ’:=’ ] < expression (IN) of string > ’,’[ NewPath ’:=’ ] < expression (IN) of string >’;’<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!