How to use CSSLint?
<p>I found some command line arguments to run generate the CSSLint report in xml format. It is working fine while running through command prompt. </p>

<p>Arguments: </p>

<blockquote>
  <p>csslint --format=csslint-xml "{SourceDir}\bootstrap.css" > "C:\temp\csslint.xml"</p>
</blockquote>

<p>I want to execute it through C# application. I tried the below code.</p>

<pre><code>Process process = new Process()
{
    StartInfo =
    {
        FileName = "cmd.exe",
        Arguments = "csslint --format=csslint-xml " + @"""{SourceDir}\bootstrap.css""" + @" &gt; ""C:\Temp\CssLint.xml""",
        UseShellExecute = false,
        RedirectStandardOutput = true,
        CreateNoWindow = true,
    }
};

process.Start();
process.WaitForExit();
</code></pre>

<p>But it is not working. Can i have a solution or idea for this issue?</p>

<p>Also is there any way to generate the CSSLint report for the specified directory? I want to give the directory path instead of file name. </p>