I am trying to kill a number of process with a certain command/exe path. I can use the following command on the physical client and it will work correctly. wmic process where "ExecutablePath LIKE '%C:\\Program Files (x86)\\XXXXX\\XXXXXX\\XXXXX\\%'"delete Now when I try and throw it into a bat file it is claiming that "there are no instances available" The command I am using in the bat iswmic /node:@kill.txt process where "ExecutablePath LIKE '%C:\\Program Files (x86)\\XXXX\\"%Universe%".Universe\\"%Ring%".Ring\\%'" delete
Is there something I am missing in order to make it work across clients? The "%Universe%" and "%Ring%" are user entered variables. Which I havent tried either, so I'm not sure if that is the correct formatting.
Thank you!