1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help for SET to include @ExecStr[] hint

Discussion in 'Suggestions' started by TonyT, Jun 2, 2011.

  1. TonyT

    Joined:
    May 29, 2011
    Messages:
    17
    Likes Received:
    0
    Redirected output does not work with SET. e.g.
    Echo %_Day | Set Day=%@Line[con,0]
    does NOT work because it gets set in a child (pipe) instance and
    environment variables are not propagated back to the parent.

    use instead for example
    Set Day=%@ExecStr[Echo %_Day]

    Please add this in the help file ... this problem confounded me forever ... until vefatica enlightened me.
     
  2. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,190
    Likes Received:
    11
    hint

    Alternatively, you can use in-process pipes
    with the caveat that in-process pipes are not supported in TCC/LE.

    Echo %_Day |! Set Day=%@Line[con,0]

    -Scott

    TonyT <> wrote on 06/02/2011
    03:16:40 PM:


     

Share This Page