MSFN Forum: wget incremental filenames - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

wget incremental filenames Rate Topic: -----

#1 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 24 August 2005 - 08:30 AM

I am currently trying to create an XPlode xml that checks for newer file version before creating my uA iso.

The problems exist with filenames that increment with each new version e.g.

K-lite Mega Codec Pack uses the filename klmcodec137.exe and with each version the filename will change, what I need to do is find away to make the url generic
http://download.betanews.com/download/1080441198/klmcodec137.exe
to
http://download.betanews.com/download/1080441198/klmcodec???.exe
or something, I made various attempts but each time has produced and error
http://download.betanews.com/download/1080441198/klmcodec13[0-9].exe:
15:03:50 ERROR 404: Not Found.
http://download.betanews.com/download/1080441198/klmcodec13*.exe:
15:05:14 ERROR 404: Not Found.
http://download.betanews.com/download/1080441198/klmcodec13?.exe:
15:05:41 ERROR 404: Not Found.
http://download.betanews.com/download/1080441198/klmcodec*13[0-9]*.exe:
15:08:16 ERROR 404: Not Found.


Is what I want to accomplish feasable or am I using the wrong syntax altogether?.

Thanks.

This post has been edited by benners: 24 August 2005 - 08:31 AM



#2 User is offline   dman 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 717
  • Joined: 01-February 05

Posted 24 August 2005 - 10:07 AM

I had the same problem with "Download.exe", but got a little more informative error message "Wildcards not supported with HTTP". I think this is the problem. I found ftp sites for some of the things I wanted to download, wildcards seem to work there. If you find solution please let me know.
E:\utils>download http://download.betanews.com/download/10804
41198/klmcodec???
File Downloader - Version 1.01 (build 7.4)
Downloads a file from a HTTP or a FTP server.
Copyright (c) 2004, Noel Danjou <webmaster@noeld.com>.

Server: download.betanews.com
Port: 80
Protocol: HTTP

Wildcards not supported with HTTP
E:\utils>


ftp://ftp.freenet.de/pub/filepilot/window...klmcodec137.exe

This post has been edited by dman: 24 August 2005 - 10:56 AM


#3 User is offline   war59312 

  • Will's Blog
  • PipPipPipPipPip
  • Group: Members
  • Posts: 922
  • Joined: 07-June 02

Posted 24 August 2005 - 02:08 PM

Well some how you need to get version info. After that you could use something like:

for /f "tokens=1" %%x in ('version +%%f%%s%%t') do set fst=%%x

wget http://download.betanews.com/download/1080441198/klmcodec%fst%.exe


Well I figured out how to download all of them. Just need a way to tell it to download only the latest and set as %fst% . Well I give up for now, just dont know how to get the latest one instead of all of them.

curl --list-only ftp://ftp.freenet.de/pub/filepilot/windows/multimedia/video/k-lite_codec_pack/ >> list.txt

wget --base=ftp://ftp.freenet.de/pub/filepilot/windows/multimedia/video/k-lite_codec_pack/  --input-file=list.txt

This post has been edited by war59312: 24 August 2005 - 03:11 PM


#4 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 24 August 2005 - 03:20 PM

Quote

Well I figured out how to download all of them. Just need a way to tell it to download only the latest
Same here I used
wget -a wget.log -nv -N -S "ftp://ftp.freenet.de/pub/filepilot/windows/multimedia/video/k-lite_codec_pack/klmcodec???.exe" -P "E:\XPDVD\Applications\codecs"
I thought with the time stamping it would only get files newer that the latest one but it downloads all the klmcodec exes and skips the klmcodec137.exe, looks like I'll have to find a place that only carries the latest version :D Thanks both for your help.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy