TotalNET Advanced Server 5.2 Reference Manual

Examples

  1. Use the following command to copy the file report.doc and rename it schedule.doc:


    tncp report.doc schedule.doc
  2. Use the following command to copy the files chapter1.doc and chapter2.doc to the directory manuals:


    tncp chapter1.doc chapter2.doc manuals
  3. Use the following command to copy the directory bookfiles, along with all files and directories under it, to the directory manuals:


    tncp -R bookfiles manuals
  4. Use the following command to copy intro.doc to preface.doc but attempt to unlink preface.doc first, if it exists and has the "write" permission off:


    tncp -f intro.doc preface.doc
  5. Use the following command to copy the file agenda.ppt to the existing file report.ppt and prompt for confirmation before overwriting report.ppt:


    tncp -i agenda.ppt report.ppt
  6. Use the following command to copy the file logo.gif to the file graphic.gif, along with attributes of logo.gif:


    tncp -p logo.gif graphic.gif
  7. Use the following command to copy all files under the directory system, and their associated shadow files, to the directory etc:


    tncp -R system etc