Home / Software / Computer programming / How to automate a download with batch?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: How to automate a download with batch?  (Read 735 times)
PPowerHouseK
Guest
« 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!
IP logged
Helpmeh
Egghead



Thanked: 116
Posts: 3,583

Experience: Experienced
OS: Windows XP


Roar.

1
« 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.
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
PPowerHouseK
Guest
« 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?
IP logged
Salmon Trout
Prodigy



Thanked: 501
Posts: 7,366

Computer: Specs
Experience: Guru
OS: Linux variant

1
« 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 » IP logged

PPowerHouseK
Guest
« 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.
IP logged
Pages: [1] - (Top) Print 
Home / Software / Computer programming / How to automate a download with batch? « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.069 seconds with 21 queries.