Welcome!

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

SignUp Now!

Redirection in for command does not work

Jul
9
0
Hi
I'm using tcc/le 13.06.77 and have a problem with the following command
for /F %j in ('java -version 2^>^&1') do (echo %j)
in cmd.exe it prints a few "java" lines, but in tcc it just displays the stderr

Thanks Aleh
 
I am not sure it's in the LE version but in the full version there is a Duplicate CMD bugs option; Sicne you get different results in CMD and in TCCLE this might help.

In TCC LE:
- type Option and press enter
- in first screen look for and select Duplicate CMD bugs and set it ON

See if this helps -
 
SETDOS is your friend, read more about it in help. Before you run your command, do the following;

Code:
setdos /X-7

After running your command, do the following;

Code:
setdox /X-0

Joe
 
You might also check in OPTION dialog, ADVANCED tab whether or not the caret (^) character has the same meaning in TCC/LE as in CMD
 

Similar threads

Back
Top