1

I'm currently using Aria2, a downloading software that you use via cmd, to download a list of content. It requires you to CD to the directory where you have a parameter file that outlines your downloads (multiple url/file names).

I was wondering how I would go about to create a batch file that will execute the Aria command to download to each folder one-by-one

For example the batch file would work along these lines

CD c:/folder1
aria2 command1
::after aria2 command1 is done and the downloads have completed
CD c:/folder2
aria2 command2
::after aria2 command2 is done and the downloads have completed

And so forth

At the moment I have to open up cmd or powershell and manually input the CD destination and aria2 command, wait until it's done, and input the next CD and aria2 command. If I try running the .bat with commands like above, aria2 doesn't run properly, and provides me the following error: [httpskipresponsecomand.cc:219] errorcode=3 resource not found

I'm hoping to create a bat file with a bunch of aria2 commands that'll run consecutively so I don't need to be present to execute the commands, and it'll carry on without me.

Thanks for your time.

  • You already wrote your program. Open Notepad and put each command on separate line and save it as blablabla.cmd (choose in Save as type: All files *.*) – Alex Aug 31 '18 at 1:48
  • first of all, for some reason my .bat files weren't in ANSI, and that seem to be the issue. Another problem arose, where the aria commands wouldn't work when the bat/cmd file was executed. But they work fine when just manually executed in cmd prompt or powershell... I get this error: [httpskipresponsecomand.cc:219] errorcode=3 resource not found – Maxo Aug 31 '18 at 5:04
  • You don't have to use CD command. Aria2c has a -d option to mention download directory. – Biswapriyo Aug 31 '18 at 6:11
  • Thanks for the suggestion Biswapriyo, but the same errors show up regardless of using CD or using -d within the aria command: [httpskipresponsecomand.cc:219] errorcode=3 resource not found – Maxo Aug 31 '18 at 6:42
  • I'm not certain of the answer, but I see that people are reading the title and answering the title. I edited the title to make the problem clear. I suggest shortening the question to make it more readable. – Christopher Hostage Aug 31 '18 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.