AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UrlDownloadToFile as named or filecopy

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
lilljimpa



Joined: 18 Apr 2007
Posts: 127

PostPosted: Tue May 12, 2009 1:13 pm    Post subject: UrlDownloadToFile as named or filecopy Reply with quote

when i download a url with a ID
example: http://www.domain.com/download.php?id=xxx

i wont know the file type or the file name (now it happens to be .srt sub files only) i would like it to be better, just to specifies if it gonna download as you type it to be or %realname%

ex:
Code:

UrlDownloadToFile, http://www.domain.com/download.php?id=xxx, C:\%realname%
;or
FileCopy, http://www.domain.com/download.php?id=xxx, C:\


nither wont work, is there any work around?

[Deleted double post. ~jaco0646]
_________________
you'll have to excuse me...I'm from Sweden, so my English is not that good...(but now it's better cuz JSLover/Guest is helping me)...
Back to top
View user's profile Send private message Send e-mail MSN Messenger
dmatch



Joined: 15 Oct 2007
Posts: 252

PostPosted: Wed May 13, 2009 4:39 pm    Post subject: Reply with quote

As far as I know you are going to have to specify a name for saving the file and what you do with it after that is up to you.

There might be some workaround specific to your situation, but I would need more information to say for sure.

There is this thread that discusses downloading to a variable instead of a file:

www.autohotkey.com/forum/topic10466.html.

At least I bumped your thread so maybe someone else who understands better what you are wanting can make suggestions. Wink

dmatch
Back to top
View user's profile Send private message
lilljimpa



Joined: 18 Apr 2007
Posts: 127

PostPosted: Fri May 15, 2009 11:57 am    Post subject: Reply with quote

okey.
the site i am downloading from is www.opensubtitles.org
as an example we take this sub title
http://www.opensubtitles.org/en/subtitles/3510631/jagad-x-code-en

the direct link to download it is:
http://www.opensubtitles.org/en/download/sub/3510631

the zip name i download it as:
jagad.x.code.(2009).eng.1cd.(3510631).zip
movie.name(year).language.numb-of-cd(the subs id).zip
_________________
you'll have to excuse me...I'm from Sweden, so my English is not that good...(but now it's better cuz JSLover/Guest is helping me)...
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group