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

WAD environment variable in TCC.exe

Discussion in 'Support' started by bwisely, Dec 11, 2012.

  1. bwisely

    Joined:
    Mar 7, 2011
    Messages:
    4
    Likes Received:
    0
    Hello
    environment variable is not correct in TCC.exe mode.

    %ProgramFiles(x86)% ==> correct is C:\Program Files (x86)

    but in Tcc always C:\Program Files(x86), not C:\Program Files (x86)

    Please fix bug.

    Thanks
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,300
    Likes Received:
    39
    Not a bug, just an unfortunate choice of characters in the variable name. TCC interprets that as the variable %PROGRAMFILES, followed by the literal text "(86)". To expand the variable name you want to expand, you can use %[PROGRAMFILES(X86)] -- this makes TCC interpret everything inside the square brackets as the variable name.
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,854
    Likes Received:
    83
    Or, if you want 100% emulation of CMD variable names, you can set "CMDVariables=Yes" in your TCMD.INI. (But then you will not be able to use any TCC-style variables with a single leading %.)
     

Share This Page