Jump to content

Need help to save a gif and transform the linkname


Recommended Posts

Hello Group,

i have a productlist which has some fields with some values there...

productid, productpic

203857,http://www.webdatenblatt.de/cds/de/?pid=fa66e2e61986909

There are much more of this values, but this are the important ones.

How am i able to download the productpic, but save it with the productid, for example 203857.gif?

The links are located in a xls file, but i am able to copy&paste this in a flat textfile.

I am really lost, any help would be greatly appreaciated.

tko2003

Link to comment
Share on other sites

How to download the files. (it does not seem the link you have points to a picture though)

If i understand your question right:

$input = "203857,http://www.webdatenblatt.de/cds/de/?pid=fa66e2e61986909" 
$Split = StringSplit($input,',')
_Download($Split[2],$Split[1])

Func _Download($URL,$ID)
    InetGet ($URL,$ID&'.gif')
EndFunc

EDIT: forgot that Split[0]= the number of items splitted

Edited by colafrysen
[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]
Link to comment
Share on other sites

How to download the files. (it does not seem the link you have points to a picture though)

If i understand your question right:

$input = "203857,http://www.webdatenblatt.de/cds/de/?pid=fa66e2e61986909" 
$Split = StringSplit($input,',')
_Download($Split[2],$Split[1])

Func _Download($URL,$ID)
    InetGet ($URL,$ID&'.gif')
EndFunc

EDIT: forgot that Split[0]= the number of items splitted

Many thanks, and how can i use this script for an larger amount of products?
Link to comment
Share on other sites

$input = "203857,http://www.webdatenblatt.de/cds/de/?pid=fa66e2e61986909" 
$Split = StringSplit($input,',')
for $i = 1 to $Split[0]
_Download($Split[$i+1],$Split[$i])
next
Func _Download($URL,$ID)
    InetGet ($URL,$ID&'.gif')
EndFunc

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...