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

How to? Start TCMD with different configurations

Discussion in 'Support' started by Josef Schroettle, Sep 15, 2016.

  1. Josef Schroettle

    Joined:
    Jun 17, 2012
    Messages:
    7
    Likes Received:
    0
    Hello there,

    I could not find a solution in the forum or helpfile.
    I would like to have two shortcuts to Take Command on the desktop. One should start Take Command with normal TCMD.ini and tcstart, e.g. for computer maintenance. The other shortcut should also start TCMD, but the TCC inside should execute an additional batchfile (additional to tcstart) where the development environment is set up. Why would I want this? The dev environment calls vcvarsall which takes about 2 sec on my machine and I want this extra delay only when I want to build from the commandline.
    I have tried the "//directive=value" in the shortcut to set a different TCStartPath (and have a second tcstart call the dev setup), but this option is for TCMD and not TCC which would need this option.
    I´m sure there is an elegant solution for this.

    Thank you for your help
    Best regards
    Josef
     
  2. MaartenG

    Joined:
    Aug 3, 2016
    Messages:
    361
    Likes Received:
    8
    There are almost certain other ways to get this done, but I got this one working:

    tcmd.exe /T tcc.exe /k c:\Temp\ff\Matrix\matrix.btm

    Meaning: Start tcmd with an extra tab (/T) and run "tcc.exe /k c:\Temp\ff\Matrix\matrix.btm" in this tab
    tcc.exe /k c:\Temp\ff\Matrix\matrix.btm means:
    Start tcc.exe and execute the command "...matrix.btm". Leave TCC opened after executing the command (that's the /K)
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,883
    Likes Received:
    29
    See the "/T" start-up option. This command in a shortcut worked for me:
    Code:
    G:\tc20\tcmd.exe /t g:\tc20\tcc.exe l:\VS10\vc\bin\vcvars32.bat
     
  4. Josef Schroettle

    Joined:
    Jun 17, 2012
    Messages:
    7
    Likes Received:
    0
    Thank you both, I will try.
     

Share This Page