#188 MARK command doesn't work in batch


In batch, I want to copy contents into the XP clipboard with the CLIPBOARD COPY command. To do that, I must mark the lines to copy with the MARK command. But in batch mode (-b), the MARK command fails with the message "Error 0024: Invalid command while running in batch: mark". RC=1. That restriction is not documented, and it makes it impossible to copy to clipboard from batch. I can still make it work without batch mode but it doesn't look pretty.


  • LesK

    LesK - 2010-08-08

    By definition: "this switch will disable any display of file contents" so why would you expect to be able to use MARK?
    Perhaps you could use PUT instead?

  • Finn Skovgaard

    Finn Skovgaard - 2010-08-08

    I don't need or want any display. I need to get records into the clipboard and the only documented way of doing that is to MARK the records first, as described under the CLIPBOARD command. The documentation of the MARK command says "The MARK command marks a portion of text for later processing by a COPY , MOVE or DELETE
    command" (the CLIPBOARD command has been forgotten). It doesn't say its only purpose is display. It says "processing". If there is another way to get records into the clipboard and which works in batch, I would like to know. I don't care about the MARK command. It's the clipboard I need to get to.


Log in to post a comment.