title: Cut a file and send it another folder in java
body: <p>In java desktop application my I have used cut button;when it's clicked there should occur cut operation.In this code there is not generated wrong message.but when I run the project it shows that cut process has been proceed.But it does not work correctly,my code is given below:
  // For cut</p>
  
  <pre><code>  String sourceLocation= "";
      String destLocation="";
      String fileCopyCmd="";
      Process  shortcutCpyprs=null;
      sourceLocation="E:\\data.txt";
      destLocation="G:\\";
      fileCopyCmd="cut \"" + sourceLocation + "\" \"" + destLocation + "\"";
      System.out.println(fileCopyCmd);
          try {
              shortcutCpyprs = Runtime.getRuntime().exec(new String[]{"cmd", "/c", fileCopyCmd});
          } catch (IOException ex) {
              Logger.getLogger(DesktopApplication2View.class.getName()).log(Level.SEVERE, null, ex);
          }  
  </code></pre>