title: How to run as admin only one line in batch file?
body: <p>this is my first question here, so when criticizing anything, please try to be constructive.</p>
  
  <p>I am trying to make my portable version of Wireshark work using one batch (.bat) file. This is my current code:</p>
  
  <pre><code>@echo on
  @echo _wireshark is starting_
  @echo ...
  @echo off
  runas /noprofile /savecred /user:Michal "cmd /c sc stop npf"
  start "" /wait WiresharkPortable.exe
  runas /noprofile /savecred /user:Michal "cmd /c sc stop npf"
  @echo on
  @echo _Thanks for sniffing around_
  @echo _Bye now.
  @pause
  </code></pre>
  
  <p>There is a problem with <strong><em>runas</em></strong> lines, supposedly they open new cmd window, but <strong><em>sc stop npf</em></strong> is not executed (checked with <strong><em>cmd /k</em></strong> option).</p>
  
  <p>Could anyone help me find my mistake?</p>
  
  <p>Regards,
  Michal</p>