title: Why am I getting a "Path not correct" error while running a batch file on a remote system?
body: <p>I need to run a batch file on a remote system from a local machine. Using the code below, I am getting the following error:</p>
  
  <pre><code>Path not correct
  </code></pre>
  
  <p>I have the IP address of the machine, and I have given the batch file as public share and share name is <code>dsc</code>.</p>
  
  <p>The IP address of the machine is 16.181.37.28.</p>
  
  <p>Here is my code. I know that the path is wrong. How can I give the exact path?</p>
  
  <pre><code>/*
   * To change this template, choose Tools | Templates
   * and open the template in the editor.
   */
  
  /**
   *
   * @author padmaja
   */
  
  import java.io.*;
  class Test{
  public static void main(String arg[]){
  try{
  String command = "cmd /C start 16.181.37.28/dsc/StartVisTsDataCenterMySql-log.bat";
  Runtime rt = Runtime.getRuntime();
  Process pr = rt.exec(command);
  
  }catch (IOException e) {
  e.printStackTrace();
  }
  }
  }
  </code></pre>