title: jcifs.smb.SmbException: The system cannot find the file specified?
body: <p>While running the below code i am getting the exception</p>
  
  <blockquote>
    <p>jcifs.smb.SmbException: The system cannot find the file specified</p>
  </blockquote>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>public void m1(String b) throws IOException {
          // TODO Auto-generated method**strong text** stub
  
          BufferedReader br=null;
          String urlToBackUpFile = "smb://" +b +"/" + "c$/Program Files/Office/Config/OfficeSyncData.ini";
          String cp="smb://" +b +"/" + "c$/Program Files/Office/Config/OfficeSyncData.txt";
          System.out.println("smb folder of source file" + urlToBackUpFile);
          NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(null, "usrname", "passwd");
  
  
            SmbFile dir = new SmbFile(cp, auth);
            SmbFileInputStream in = new SmbFileInputStream( dir );
           // br = new BufferedReader(new InputStreamReader(in));
  
  
            System.out.println(dir.getDate());
            SmbFile dest = new SmbFile (urlToBackUpFile,auth);
            //count.copyTo(dest);
            dir.copyTo(dest);
  
      }
  </code></pre>
  
  <p>How do i resolve?.</p>