title: get a file path
body: <p>Is there a way to get the full path for a file exists on the computer ? 
  For example , I want to get the full path for a file in a folder on desktop </p>
  
  <p>I tried using :</p>
  
  <pre><code>  File f = new File("help.chm");
  
    String f2=f.getAbsolutePath();
    f3=f3.replaceAll("\\\\","/" );
    System.out.println("Path:"+f3);
  </code></pre>
  
  <p>but it gave me the path of the project like this:</p>
  
  <blockquote>
    <p>C:/Users/toshiba/Documents/NetBeansProjects/test/help.chm</p>
  </blockquote>
  
  <p>although the file is not located there .</p>