title: Downloading .csv file from website using .bat or xslt 2.0
body: <p>I am trying to download a <code>.csv</code> file from <a href="https://www.ons.gov.uk/economy/inflationandpriceindices/timeseries/chaw/mm23" rel="nofollow noreferrer">a website</a> using a <code>.bat</code> file in the current folder <em>(or specified)</em>.</p>
  
  <p>I think there is some issue with how the download works for this <code>.csv</code> file; I think it downloads only on button/tab click.</p>
  
  <p>If you scroll down there is the option - Download this time series and green color tab <code>.csv</code> with the following uri:</p>
  
  <pre><code>https://www.ons.gov.uk/generator?format=csv&amp;amp;uri=/economy/inflationandpriceindices/timeseries/chaw/mm23
  </code></pre>
  
  <p>This is my <code>.bat</code> file content: </p>
  
  <pre><code>@echo off
  SET "FILENAME=%~dp0\series.csv"
  bitsadmin.exe /transfer "JobName" https://www.ons.gov.uk/generator?format=csv&amp;amp;uri=/economy/inflationandpriceindices/timeseries/chaw/mm23 "%FILENAME%"
  </code></pre>
  
  <p>I have even tried to do this using <code>XSLT 2.0</code>, but I was unable to automate this download.</p>