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

Detecting TCC ?

Discussion in 'TCC/LE Support' started by pforhan, Feb 2, 2010.

  1. pforhan

    Joined:
    Feb 2, 2010
    Messages:
    10
    Likes Received:
    0
    What's the best way to determine if TCC is the shell running a batch file? I'm using something like this:
    if not (%@EVAL[1+1]%)==(2) CMD command
    or
    if (%@EVAL[1+1]%)==(2) TCC command
    Is that my best bet? I was going to check %_VERSION, but it is not in LE...
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,277
    Likes Received:
    38
    I've often used something like IF 01 == 1 ... In JP shells, that's a numeric comparison and true; in Microsoft's, it's a string comparison and false.
     
  3. roytam1

    Joined:
    Apr 1, 2010
    Messages:
    43
    Likes Received:
    0
    I use:
    Code:
    if "%_4VER"=="%_4VER%" echo 4NT
     

Share This Page