- May
- 13,141
- 180
I can echo this expression.
But I can't use it in a conditional expression.
What's up with that?
Code:
v:\> echo "%@wmi[.,"select processid from Win32_service where name='spooler'"]"
"2536"
But I can't use it in a conditional expression.
Code:
v:\> if "%@wmi[.,"select processid from Win32_service where name='spooler'"]" ne "" echo OK
TCC: Syntax error "@wmi[.,"select"
Usage : IF [/I] [NOT] condition [.AND. | .OR. | .XOR. [NOT] condition ...] command
What's up with that?