title: how to run a batch file from java using administrator privileges?
body: <pre><code>how to run a batch file from java using administrator privileges?
  </code></pre>
  
  <p>I am trying to do this.But code is not working.</p>
  
  <pre><code>String cmd = "runas /profile /user:Administrator /cmd.exe /C certutil -addstore ROOT  E:\\WORK\\UI\\DesktopRecorder\\userdata\\certgen\\X509CA\\ca\\new_ca.crt";
  
  Runtime run = Runtime.getRuntime();
  Process process = run.exec(cmd);
  </code></pre>