title: How do I control my computer master volume by batch file?
body: <p>I have the following batch code. However, this code only turns up my PC volume, but I want to also turn down my volume. How can I achieve this?</p>
  <pre><code>@if (@a==@b) @end /*
  
  :: Batch portion
  
  @echo off
  
  cscript /e:jscript &quot;%~f0&quot;
  
  :: JScript portion */
  
  var shl = new ActiveXObject(&quot;WScript.Shell&quot;);
  for (var i = 0; i &lt; 5; i++) {
      shl.SendKeys(String.fromCharCode(0xAF));
  }
  </code></pre>