Need to copy a file using wget in windows
<pre><code>import java.io.*;
class demo
{
public static void main(String str[]) throws Exception
{
     Process p = Runtime.getRuntime().exec("wget -P C:\vignesh\Docx\docx_final\Html2Docx\src http://anbu/upload/ExportHtml.html");
     p.destroy();
}
}
</code></pre>

<p>Hi all,</p>

<p>I want to copy a file from URL to my folder(src). I tried through java, i got error illegal escape character. but the above wget works in command prompt. Please help me..Thanks in advance.</p>
