Announcement

Collapse
No announcement yet.

CPY a stream file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CPY a stream file

    I have tried with no success to use option 3=Copy on the Work with Object Links screen to copy a file to the same directory with a different name. How can I do such a copy?

  • #2
    You use only the first and third parameters - leave the second one at the default. i.e. use OBJ and TOOBJ - you need the full qualified name in both cases.

    At least that is the way I get it to work. I am forever forgetting and creating copies in the root! There's probably some unixy magic incantation to avoid the full path but ...

    OBJ('/home/jon/lab03/oldfile')
    TOOBJ('/home/jon/lab03/newfile')

    Comment


    • #3
      Thank you.

      Comment


      • #4
        Another option, since the default for TODIR ('.') is current directory, is to use CHGCURDIR to change your current directory to the source directory.

        Then you would just need to specify the new object name on the TOOBJ parameter.

        Cheers,

        Emmanuel

        Comment


        • #5
          I like that. Thank you.

          Comment

          Working...
          X