Guest User

REBOL

a guest
Jan 29th, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ;image name and extension parsed before this code
  2.  
  3.  
  4. maxcount: length? imglist
  5. dldir: request-dir
  6. count: 0
  7. imgcount: 0
  8. foreach img imglist [
  9. count: count + (1 / maxcount)
  10. imgcount: imgcount + 1
  11.  
  12. field_info/text: join "Downloading " [ "(" to-string imgcount "/" to-string maxcount ").." ]
  13. show field_info
  14.  
  15. localurl: join dldir [ img first extlist ] ;create local img file path
  16. imgdlurl: join "http://images.website.org/" [ get_boardname dlurl "/src/" img first extlist ] ;create url
  17.  
  18. write to-file localurl
  19. read/binary to-url imgdlurl
  20.  
  21. p1/data: count show p1
  22. extlist: next extlist
  23. ]
Advertisement
Add Comment
Please, Sign In to add comment