+ Post New Thread
Results 1 to 2 of 2
Windows 7 Thread, Running 3 wmic commands from bat file. Stops after entering wmic. in Technical; Hi, Im trying to create a batch file to uninstall a program. Heres the code Code: wmic product where "name='SIMS ...
  1. #1

    Join Date
    Nov 2011
    Posts
    628
    Thank Post
    87
    Thanked 21 Times in 19 Posts
    Rep Power
    11

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

    Hi,

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

    Heres the code
    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

  2. #2

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,819
    Thank Post
    881
    Thanked 685 Times in 454 Posts
    Rep Power
    505
    try
    Code:
    start /w wmic product where "name='SIMS Discover Client' and version<'7.148.77.0'" call uninstall /nointeractive
    exit
    
    Make sure you add the "call" function before "uninstall"

    Last edited by Gatt; 25th March 2013 at 04:02 PM.



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 3
    Last Post: 21st March 2012, 01:10 PM
  2. Replies: 17
    Last Post: 19th March 2012, 06:49 PM
  3. Replies: 6
    Last Post: 9th October 2011, 09:12 PM
  4. Replies: 9
    Last Post: 17th January 2008, 01:45 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •