Oxyd

Adobe Flash retriever. Get idea from http://goo.gl/wUclBu

Feb 13th, 2014
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rexx 1.37 KB | None | 0 0
  1. /* Adobe Flash updates retriever */
  2.  
  3. Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  4. Call SysLoadFuncs
  5.  
  6. vSRV_Path = 'D:\var\www\flashupdate\pub\flashplayer\update\current\sau\'
  7. Version = '11'
  8. Src_Path = 'fpdownload2.macromedia.com/pub/flashplayer/update/current/sau/'
  9.  
  10. update.1 = Src_Path||Version||'/xml/version.xml'
  11. update.2 = Src_Path||Version||'/install/install_all_win_ax_sgn.z'
  12. update.3 = Src_Path||Version||'/install/install_all_win_pl_sgn.z'
  13. update.4 = Src_Path||Version||'/install/install_all_win_64_ax_sgn.z'
  14. update.5 = Src_Path||Version||'/install/install_all_win_64_pl_sgn.z'
  15.  
  16. destination.1 = vSRV_Path||Version||'\xml\'
  17. destination.2 = vSRV_Path||Version||'\install\'
  18.  
  19. Do count = 1 to 2
  20.     If Directory(destination.count) \= destination.count Then Call MkTreeDir destination.count
  21. End
  22. space = ' '
  23. dstPath = destination.1
  24. Wget_Param = "call wget.cmd -nv -P "
  25. Do count = 1 to 5
  26.     WGet_cmdl = Wget_Param||dstPath||space||update.count
  27.     WGet_cmdl
  28.     dstpath = destination.2
  29. End
  30. Exit
  31.  
  32. MkTreeDir: Procedure
  33. Parse arg path
  34. chroot = Directory()
  35. Path.Drive = FileSpec('Drive', path)
  36. If Path.Drive = '' Then Path.Drive = chroot
  37. Path.Path = FileSpec('Path', path)
  38. path = Path.Drive||Path.Path
  39. curDir = ''
  40. Do While path \= ''
  41.     Parse value path with curSubDir '\' path
  42.     curDir = curDir||curSubDir
  43.     Call SysMkDir(curDir)
  44.     curDir = curDir||'\'
  45. End
  46. Return 0
Add Comment
Please, Sign In to add comment