Jump to content

Running 3 wmic commands from bat file. Stops after entering wmic.


Recommended Posts

Posted

Hi,

 

Im trying to create a batch file to uninstall a program.

 

Heres the code

wmic
product where "name='SIMS Discover Client' and version<'7.148.77.0'" uninstall /nointeractive
exit

 

It runs wmic and then stops waiting for the wmic command.

 

Any ideas?

 

Thanks

Posted (edited)

try

start /w wmic [color=#333333]product where "name='SIMS Discover Client' and version<'7.148.77.0'" call uninstall /nointeractive
exit
[/color]

 

Make sure you add the "call" function before "uninstall"

 

Edited by Gatt

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...