user974873
user974873

Reputation: 321

How can I create this bat file?

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

Answers (1)

TimKouters
TimKouters

Reputation: 26

Did you try:

start /d "<Directory of WMIC>" WMIC uninstall

Check for reference: here

Upvotes: 1

Related Questions