0

I have a .bat file that is supposed to download an image from a website and save it somewhere on your computer using Bitsadmin, but whenever I try to run it, I get this error:

DISPLAY: JOB TYPE: DOWNLOAD STATE: ERROR
PRIORITY: NORMAL FILES: 0 / 1 BYTES: 0 / UNKNOWN
Unable to complete transfer.
ERROR FILE:    http://website.com/pictures/picture.png -> C:\
ERROR CODE:    0x80190194
ERROR CONTEXT: 0x00000005

I honestly have no idea what that means so I would love some help with it. Here is my current code (The website in the real code is something else, this is just an example)

@echo off && set /p name=Name: 
bitsadmin /transfer job /download /priority normal C:\Users\user\Downloads\%skin%.png c:\%name%.png
pause

Thanks.

Fabian N.
  • 3,570
  • 2
  • 20
  • 44
Ervin
  • 1
  • 1
  • Download cURL or wGet. – Joe DF May 29 '15 at 15:14
  • Error code 0x80070005 is also known as "ACCESS DENIED." - You may have a wrong save path or don't have write permissions. – Pedro Lobito May 29 '15 at 15:16
  • @PedroLobito Thanks! That did it, but now the error has changed to 0x80190194 – Ervin May 29 '15 at 15:24
  • check this - http://stackoverflow.com/questions/28143160/how-can-i-download-a-file-with-batch-file-without-using-any-external-tools – npocmaka May 29 '15 at 15:28
  • @PedroLobito Nevermind! Fixed it! The website itself had capitalization in its domain that I didn't put in the bat file. Thanks again! – Ervin May 29 '15 at 15:29

1 Answers1

0

Solved. I was trying to save it in a restricted save path.

Ervin
  • 1
  • 1