Anuj Gupta
Anuj Gupta

Reputation: 135

Unable to execute the wmic command through tcl

I'm executing the command wmic process where Description="java.exe" get caption through my tcl shell and getting below error:-

Node - HAW-TEST-04

ERROR:

Description = Invalid query

while the same commands runs perfectly from command terminal

`C:\>wmic process where Description="java.exe" get caption`
Caption
java.exe
java.exe
java.exe
java.exe

Upvotes: 1

Views: 146

Answers (1)

Dinesh
Dinesh

Reputation: 16428

% exec wmic process where Description='java.exe' get caption
Caption

java.exe


%

Upvotes: 1

Related Questions