Php shell_exec wmic problem
<p>I do not know what i am doing wrong. When i run this if statement i get "Wrong" all the time. </p>

<p>Regards.</p>

<pre><code>if(trim(shell_exec('wmic diskdrive get model')) != "Model Maxtor 6Y080L0")
{
echo "Wrong!";
}else{
echo shell_exec('wmic diskdrive get model'); // Model Maxtor 6Y080L0
}
</code></pre>
