- Jun
- 2
- 0
If I write a BTM file that does this:
ECHO aaa | ECHO %@line[con,0]
it echos aaa. OK.
If I write a BTM file that does this
SET XXX=aaa
it sets the environment variable XXX as aaa. OK.
If I write a BTM file that does this:
ECHO aaa | SET XXX=%@line[con,0]
it doesn't set the variable xxx.
Why?
I want to set an env variable from the output of a program. In my test I simulated the program with ECHO aaa
Nick
ECHO aaa | ECHO %@line[con,0]
it echos aaa. OK.
If I write a BTM file that does this
SET XXX=aaa
it sets the environment variable XXX as aaa. OK.
If I write a BTM file that does this:
ECHO aaa | SET XXX=%@line[con,0]
it doesn't set the variable xxx.
Why?
I want to set an env variable from the output of a program. In my test I simulated the program with ECHO aaa
Nick