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

How to? tcmd.exe start up

Discussion in 'T&T - Scripting' started by fpefpe, Jan 19, 2012.

  1. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    150
    Likes Received:
    0
    Hello -- is there a exit point or ini option that I get get control after tcmd.exe starts and before it opens a console window, ie tcc?
     
    #1
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    2,725
    Likes Received:
    14
    Can you be more specific about what you're trying to do?
     
    #2
  3. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    150
    Likes Received:
    0
    Hello --

    Yes -- I use the rexx support in tcmd/tcc -- in this case when rexx is turned on it first searches for the
    open object rexx dll, if found it uses it otherwise it then searches for the regina (rexx) dll -- What I want to
    do is when tcmd start, alter the "PATH" to remove OO Rexx dir so when tcc start is uses the regina dll

    Thanks
     
    #3
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    7,198
    Likes Received:
    21
    You can start TCMD without starting any TCC windows, but there's no way in TCMD to modify its environment.

    You could create a shortcut kludge that starts TCC, removes the OOREXX path, and then starts TCMD.
     
    #4
  5. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    150
    Likes Received:
    0
    Thanks for the info ...

    Would an alternate approach be in the tcstart command (my guess is that by the time that this is started, the rexx dll has been loaded) add back into the PATH env var the open object rexx path ans recreate the PATH var with

    set /v

    Would that make the modified path global?
     
    #5
  6. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    7,198
    Likes Received:
    21
    That wouldn't work -- the REXX dll has already been loaded, and the SET /V wouldn't affect the environment of the parent Take Command, so it wouldn't affect starting subsequent TCC shells.
     
    #6

Share This Page