Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Detecting TCC ?

Feb
10
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...
 
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...

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.
 

Similar threads

Back
Top