Reputation: 321
I want to create a bat file to uninstall a program but I cant seem to get it working. These are the two commands I want it to do:
-wmic
-product where name="program Name" call uninstall
It will run the command WMIC but after that nothing happens and I want that second command to be run after WMIC
How can I make a bat file to do this?
Thanks
Upvotes: 0
Views: 273
Reputation: 26
Did you try:
start /d "<Directory of WMIC>" WMIC uninstall
Check for reference: here
Upvotes: 1