Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Running WMIC from within .bat fails?

Reply
Thread Tools Display Modes

Running WMIC from within .bat fails?

 
 
Josh C
Guest
Posts: n/a

 
      11-05-2009
I have a simple WMIC command that utilises a wild card search.

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...-cool-net.aspx
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Windows Internet Explorer 8 fails with Error Code E Chuck Windows Update 3 10-23-2009 01:33 AM
Re: New to WMIC Pegasus [MVP] Scripting 1 10-21-2009 09:14 PM
VHP retail upgrade fails on VHB OEM Dave H. Windows Vista Installation 3 09-14-2007 09:42 PM
Windows Easy Transfer Stops Running or Hangs Patrick Casher Windows Vista Installation 0 09-06-2007 01:37 PM
.bat Default Program Raymond Windows Vista File Management 1 06-06-2007 12:07 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59