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

    fpefpe

    Messages:
    148
    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?
  2. Charles Dye

    Charles Dye Super Moderator Staff Member

    Messages:
    2,557
    Can you be more specific about what you're trying to do?
  3. fpefpe

    fpefpe

    Messages:
    148
    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
  4. rconn

    rconn Administrator Staff Member

    Messages:
    6,710
    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.
  5. fpefpe

    fpefpe

    Messages:
    148
    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?
  6. rconn

    rconn Administrator Staff Member

    Messages:
    6,710
    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.

Share This Page