wmic product where "name like 'Infocouncil%'" call uninstall
When running this directly from a command prompt it works fine. However if I run the same command from within a .bat file it fails to find an instance of the product.
Now if I remove the wildcard search in the bat file it works fine:
wmic product where name="Infocouncil_5_3_19_0_" call uninstall
Any ideas?
Every
EggHeadCafe - Software Developer Portal of Choice
Dr. Dotnetsky's Cool .NET Tips & Tricks #15
http://www.eggheadcafe.com/tutorials/aspnet/639b4eef-1f75-4039-99a4-d74c89548125/dr-dotnetskys-cool-net.aspx
Need to escape percent signs, which are normal parsed in batch files.
This should work ...
wmic product where "name like 'Infocouncil%%'" call uninstall
_________________
Tom Lavedas