title: Downloading file from URL using start chrome
body: <p>I have a batch file that opens a URL to download a csv file, then I need to move and then rename that csv form downloads folder to other one.</p>
  
  <p>What I have is:</p>
  
  <pre><code>@echo off
  
  SET CCDIR=C:\Users\(username)\Desktop
  SET LOADDIR=C:\Users\(username)\Downloads
  
  ECHO ***************************************************************************
  ECHO  Downloading the file
  ECHO ***************************************************************************
  
  start chrome (URL string)
  
  :NEXT
  
  ECHO ***************************************************************************
  ECHO  Move CSV file from Downloads folder to Desktop
  ECHO ***************************************************************************
  
  move %LOADDIR%\*(file string)* %CCDIR%
  ren %CCDIR%\*(file string)* (new file name)
  </code></pre>
  
  <p>I want to execute it all in the same bat, but just the start chrome is working, the bat is ignoring the move and ren.</p>
  
  <p>How can I do that?</p>