Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

calling loparser query from batch file

Avatar of fmcti
fmcti asked on
2 Comments1 Solution435 ViewsLast Modified:
I am trying to run logparser from a batch file.  This is usually no problem but the querry uses some % signs and DOS batch file processing is trying to interpret those as parameters rather than just running the logparser command as written.  How do I force DOS to run this as intended.  I am sure this solution would apply to any similar situation where trying to run a command with % is not to be processed by DOS is necessary.  Here is what I am trying to run from the batch file:

logparser -i:TSV -iSeparator:spaces -o:CHART "SELECT Mounted, TO_INT(EXTRACT_PREFIX( %used, 0, '%' )) INTO bdf.gif FROM bdf.txt" -chartType:ColumnClustered -chartTitle:"% drive space" -view:on

Any help is very appreciated,
Bill A.