title: C++, download file in directory
body: <p>So I have this simple code to download a file from an url opening the browser</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include&lt;Windows.h&gt;
  #include&lt;string&gt;
  
  using namespace std;
  
  int main()
  {
      string dwnld_URL = "http://www.url.com/downloadpage";
      ShellExecuteA(NULL, "open", dwnld_URL.c_str(), NULL, NULL, SW_SHOWNORMAL);
  
      return 0;
  }
  </code></pre>
  
  <p>But I want the file to go in the current directory instead of going in the default download folder. Is there any way I can do this?</p>