In a batch script I wrote:

Set src="http://calendar.google.com/calendar/ical/j<MORE>@gmx.net/private-c<MORE>e/basic.ics"
Set dst="D:\Data\ICS\basic.ics"
bitsadmin  /transfer myDownloadJob /download /priority normal %src% %dst%

Instead of <MORE> there is actual information that I want to keep to myself.

Here is a screenshot that shows what happens when I call the batch script.

enter image description here

When I use the same URL in an internet explorer the download starts as expected. It does not matter for this error if there is a file D\Data\ICS\basic.ics

What am I doing wrong? Why is this not downloading the file?

  • Are there any special characters in the parts you obscured?
    – DavidPostill
    Aug 17, 2016 at 17:20
  • @DavidPostill No, alphanumerical and dashes. abcdefghijklmnopqrstuvwxyz-1234567890
    – Johannes
    Aug 17, 2016 at 17:26
  • The response from the server is 405 Method not allowed. I don't use bitsadmin , but it looks like its not performing a normal HTTP GET request.
    – mt025
    Aug 17, 2016 at 19:49


You must log in to answer this question.

Browse other questions tagged .