Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Running WMIC from within .bat fails?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
 
View profile  
 More options Nov 5 2009, 2:22 am
Newsgroups: microsoft.public.windows.server.scripting
From: Josh C
Date: Wed, 04 Nov 2009 18:22:21 -0800
Local: Thurs, Nov 5 2009 2:22 am
Subject: Running WMIC from within .bat fails?
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/aspnet/639b4eef-1f75-4039-99a4-d...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Lavedas  
View profile  
 More options Nov 5 2009, 3:08 am
Newsgroups: microsoft.public.windows.server.scripting
From: Tom Lavedas <tglba...@cox.net>
Date: Wed, 4 Nov 2009 19:08:18 -0800 (PST)
Local: Thurs, Nov 5 2009 3:08 am
Subject: Re: Running WMIC from within .bat fails?
On Nov 4, 9:22 pm, Josh C wrote:

Need to escape percent signs, which are normal parsed in batch files.
This should work ...

  wmic product where "name like 'Infocouncil%%'" call uninstall
_________________
Tom Lavedas


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google