Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to automate a download with batch?  (Read 5927 times)

0 Members and 1 Guest are viewing this topic.

PPowerHouseK

  • Guest
How to automate a download with batch?
« on: November 21, 2009, 09:57:30 AM »
Hello all,

I have another question! I would like to know how to make a batch either click a link on a page just opened, or just download a file from a specified web url.

The reason for this is to automate an update process, without asking the user to click the download button.

I was able to find a program to install that would do this, but i am looking for a more batchy version of this. Thanks in advance!

Helpmeh



    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: How to automate a download with batch?
« Reply #1 on: November 21, 2009, 12:28:20 PM »
There is a third-party program that can do what you want, but I can't remember what it is...hopefully another member can provide it.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

PPowerHouseK

  • Guest
Re: How to automate a download with batch?
« Reply #2 on: November 21, 2009, 12:55:45 PM »
Thanks for the quick reply! 
I was able to find wget.exe and webfetch.exe, however neither seem to be able to resolve my host, nor simply download the file at the specified path for that matter.

Anyone know of any other command executable programs?

Salmon Trout

  • Guest
Re: How to automate a download with batch?
« Reply #3 on: November 22, 2009, 01:54:27 AM »
please specify the problem you are having with wget & show the code you are using

Code: [Select]
S:\>wget http://z.about.com/d/healing/1/0/l/N/gtotem_baboon.jpg
--2009-11-22 08:53:16--  http://z.about.com/d/healing/1/0/l/N/gtotem_baboon.jpg
Resolving z.about.com... 207.126.123.29
Connecting to z.about.com|207.126.123.29|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66800 (65K) [image/jpeg]
Saving to: `gtotem_baboon.jpg'

100%[==========================================>] 66,800       106K/s   in 0.6s

2009-11-22 08:53:17 (106 KB/s) - `gtotem_baboon.jpg' saved [66800/66800]

Also Curl is quite good, and is optimised for getting single files more than wget

Code: [Select]
S:\>curl -O http://z.about.com/d/healing/1/0/l/N/gtotem_baboon.jpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 66800  100 66800    0     0  66800      0  0:00:01  0:00:01 --:--:-- 82266



« Last Edit: November 22, 2009, 02:06:06 AM by Salmon Trout »

PPowerHouseK

  • Guest
Re: How to automate a download with batch?
« Reply #4 on: November 27, 2009, 01:12:26 PM »
Thanks for the speedy replies.
I was able to get wget to work, apparently Comodo thought it would be funny to block it and not say anything.
Either way, it works, and once again all your help was greatly appreciated.

Moderators you can mark this as solved, if desired.