title: Unable to invoke command prompt from windows service
body: <p>I have a scenario where I want to open the command prompt while execute the following method - </p>
  
  <pre><code>public static int executeScript(){
      String scriptPath = "C:\\test"
      String command = "cmd /c start  "+scriptPath+"\\backup.bat &gt; "+scriptPath+"\\Logs.txt";
      Process process = Runtime.getRuntime().exec(command);
      return process.waitFor();
  }
  </code></pre>
  
  <p>User wants to see the command prompt when the testRun.bat executes. When we deploy the application from command prompt it is running as expected user see the command prompt of the backup script execution. But In the production environment the application runs as window service, In this case the command prompt is not visible.</p>
  
  <p>How can I show the command prompt when application is running as window's service?</p>
  
  <p>thanks in advance.</p>